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).
Array Add/Remove elements
The changeArray function
Report a typo
Write a program in JavaScript
function changeArray(){
const myArray = ['John', 'Kate', 'Igor', 'Sam', 'Stan', 'William'];
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.