Question #30

Author: admin
tags: JavaScript  
Using which array method, there is no way to change the original array on which it is called?
arr.push()
arr.unshift()
arr.map()
arr.reverse()
Alas, all the methods above can change the original array.
The methods arr.push, arr.unshift, arr.reverse change the original array.
The arr.map method returns a new array, but nothing prevents changing the original array through the callback function, because this function gets the index as the second argument, and the reference to the original array as the third argument.
Rate the difficulty of the question:
easyhard