QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 61

Which statement correctly classifies the keys of ordinary JavaScript object properties?

  1. Only strings and Symbols can be actual property keysՃիշտ պատասխան
  2. Strings, Symbols, and Numbers remain distinct property-key types
  3. Any primitive value remains unchanged when used as a property key
  4. Every property key is stored as a Number

Բացատրություն

JavaScript ultimately represents every ordinary property key as either a string or a Symbol. A numeric expression may be used during access, but it is converted to a string key rather than remaining a Number key.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 61: Which statement correctly classifies the keys of ordinary… · JavaScript Fundamentals · Questena