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

Two separate evaluations create [1, 2] and [1, 2]. What does strict equality between the resulting arrays produce?

  1. true because their lengths match
  2. true because every element matches
  3. undefined because arrays cannot be compared
  4. false because their identities differՃիշտ պատասխան

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

Each array creation produces a distinct object, so strict equality between the two references is false. Matching elements do not make objects strictly equal because this comparison uses identity rather than structural content.

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

Սկսել վարժանքը
Հարց 10: Two separate evaluations create [1, 2] and [1, 2]. What… · JavaScript Fundamentals · Questena