Cut first word out of a string javascript code example
Example: trim first character in javascript
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/