Single Choice Easy

QWhich of the following key properties stores the string representation of the key name?

ID: #5177 Javascript DOM & Event Handling MCQ 154 views
Question Info
#5177Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A keyName ✔ ✖
  • B key ✔ ✖
  • C keyName(string) ✔ ✖
  • D Nameofkey(string) ✔ ✖
Correct Answer

Explanation

A new key property that includes the key name as a string is defined by the DOM Level 3 Events.
The array returned by Object.keys() contains strings that correspond to the enumerable attributes that may be found directly on the object.

Share This Question

Challenge a friend or share with your study group.