Contact: aviboots(AT)netvision.net.il
39,009 questions
50,723 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' ] */