The changeArray function

Report a typo

Write a changeArray function that removes the strings 'Igor', 'Sam' and 'Stan' from the array myArray and returns the modified array myArray (we recommend using the splice() method here).

Write a program in JavaScript
function changeArray(){
const myArray = ['John', 'Kate', 'Igor', 'Sam', 'Stan', 'William'];
// write your code here

}
___

Create a free account to access the full topic