In JavaScript, consider the statement: SubscriptionCost = new Array(3); Which…

NVS Computer Science / IT Teacher Recruitment · Computer Science · 2022

In JavaScript, consider the statement:

SubscriptionCost = new Array(3);

Which statement is incorrect about the above statement?

  1. A.

    It creates an array whose length is initially 3

  2. B.

    It creates a fixed-size array of 3 elements that cannot be resized

  3. C.

    The initial valid index positions are 0, 1, and 2

  4. D.

    The array can later grow beyond length 3 if values are assigned or elements are added

Attempted by 502 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…