how to remove first character from string in javascript

JavaScript
str = str.substring(1);let str = 'Hello';
 
str = str.slice(1);
console.log(str);
 
/*
    Output: ello
*/

Source

Also in JavaScript: