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

An array source is sliced to select two elements. Which statement describes the result?

  1. It removes the range and returns source
  2. It returns the same array after mutation
  3. It returns a new array and preserves sourceՃիշտ պատասխան
  4. It returns only the number of selected elements

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

Array slice creates a new array for the selected range and does not change source. Confusing it with splice leads to the incorrect claim that the selected elements are removed from the original.

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

Սկսել վարժանքը
Հարց 44: An array source is sliced to select two elements. Which… · JavaScript Fundamentals · Questena