I want to skip index 0. How do I do that? Further I want to replace
index 0 with something else.
Just start the loop from 1
instead of 0
sportsArr[0] = "Something else"; // set the first element to something else
for(var i = 1; i < sportsArr.length; i++){
// do something
}
solved How can I skip a specific Index in an array in a for loop javascript