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

The variable value is null. What does the expression value?.name produce?

  1. The string name
  2. The value null
  3. A TypeError
  4. The value undefinedՃիշտ պատասխան

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

Optional chaining stops this property access when its left side is null and produces undefined. It does not produce null, and it does not broadly catch failures from separate expressions or from later links that were not made optional.

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

Սկսել վարժանքը
Հարց 72: The variable value is null. What does the expression… · JavaScript Fundamentals · Questena