Answers for "delete first character of array"

13

delete first character javascript

let str = 'Hello';
 
str = str.slice(1);
console.log(str);
 
/*
    Output: ello
*/
Posted by: Guest on July-06-2020
0

javascript remove first character from array list

var x = ["X2019","X2020","X2021","X2022"];

var y = x.map(s => s.slice(1));

console.log(y);
Posted by: Guest on October-03-2021

Code answers related to "delete first character of array"

Code answers related to "Javascript"

Browse Popular Code Answers by Language