Delete every second element

Report a typo

Write a deleteEverySecond function that removes every second element from myArray. You can use any of the methods you have studied in this topic.

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

}
___

Create a free account to access the full topic