Write a deleteEverySecond function that removes every second element from myArray. You can use any of the methods you have studied in this topic.
Array Add/Remove elements
Delete every second element
Report a typo
Write a program in JavaScript
function deleteEverySecond(){
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.