Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 answers
573 users
const arr = ["javascript", "php", "c++", "python", "c"]; let index = 1; let item = arr.splice(index, 1); arr.forEach(function(item, index, array) { console.log(item + " " + index); }); /* run: "javascript 0" "c++ 1" "python 2" "c 3" */