}

Arrays Index Page 1

Javascript: How to remove a specific element from an array?

In this small tutorial we will give example on how to remove a specific element from an array with javascript. Code example: var index = array.indexOf(5); if (index > -1) { array.splice(index, 1); }

Arrays Index Page 1

How to iterate an array in javascript? (the proper way)

In this tutorial we are going to explain how to loop through all the objects in an array using JavaScript.