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

In the expression user.name, how does JavaScript interpret name?

  1. As a variable whose current value selects the property
  2. As the literal property name nameՃիշտ պատասխան
  3. As a request to enumerate every property
  4. As a Symbol created for this access

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

Dot notation treats the identifier after the dot as the literal property name to access. It does not look up a variable named name, which is the behavior associated with a computed bracket expression.

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

Սկսել վարժանքը
Հարց 62: In the expression user.name, how does JavaScript interpret… · JavaScript Fundamentals · Questena