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