remove first letter from array javascript code example
Example 1: delete first character javascript
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
Example 2: javascript remove first element from array
let numbers = ["I'm Not A Number!", 1, 2, 3];
numbers.shift();