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

The array named items has length 2. What does items.push("c") return?

  1. c
  2. 2
  3. the updated array
  4. 3Ճիշտ պատասխան

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

push appends the supplied element and returns the array's new length, which is 3. Returning "c" would confuse the appended value with the method's numeric result.

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

Սկսել վարժանքը
Հարց 41: The array named items has length 2. What does… · JavaScript Fundamentals · Questena