Which of the following method prepend list to the front of the array, and returns the number of elements in the new array? * 1 point push @ARRAY, LIST pop @ARRAY shift @ARRAY unshift @ARRAY, LIST?mcq code example
Example: unshift method in javascript
var name = [ "john" ];
name.unshift( "charlie" );
name.unshift( "joseph", "Jane" );
console.log(name);
//Output will be
[" joseph "," Jane ", " charlie ", " john "]