QuestenaPractice that shows what to review next
Question 37

At which index is the first element of an ordinary JavaScript array stored?

  1. 0Correct answer
  2. 1
  3. -1
  4. It depends on array length

Explanation

Array element positions are zero-based, so the first element uses index 0. Choosing index 1 applies one-based counting rather than JavaScript's indexed-element convention.

Continue with this test

Start practice
Question 37: At which index is the first element of an ordinary… · JavaScript Fundamentals · Questena