javascript array add at 0 code example
Example: javascript array insert at 0
let myArray = [1,2,3];
myArray.unshift(0);
console.log(myArray); // [0,1,2,3]
let myArray = [1,2,3];
myArray.unshift(0);
console.log(myArray); // [0,1,2,3]