What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-28 09:48:02
Remove element from array JavaScript
var colors = ["red","blue","car","green"]; var carIndex = colors.indexOf("car");//get "car" index //remove car from the colors array colors.splice(carIndex, 1); // colors = ["red",&... Add solution