Contact: aviboots(AT)netvision.net.il
39,845 questions
51,766 answers
573 users
let arr = ["Node.js", "PHP", "C", "Python"]; delete arr[0]; // Change the element to undefined console.log(arr); /* run: [ <1 empty item>, 'PHP', 'C', 'Python' ] */
let arr = ["Node.js", "PHP", "C", "Python"]; arr.splice(0, 1) console.log(arr); /* run: [ 'PHP', 'C', 'Python' ] */