QuestenaÜben und erkennen, was als Nächstes dran ist
Frage 39

An array has no element at index 8. What does reading that index return?

  1. RangeError
  2. null
  3. undefinedRichtige Antwort
  4. the nearest element

Erklärung

Reading an array position with no element returns undefined rather than throwing. That result alone cannot prove the position is absent, because a present element could itself contain undefined.

Mit diesem Test weitermachen

Übung starten
Frage 39: An array has no element at index 8. What does reading that… · JavaScript Fundamentals · Questena