javascript splice from start to character character code example
Example 1: remove first char javascript
let str = 'Hello';
str = str.substring(1);
console.log(str);
/*
Output: ello
*/
Example 2: how to remove first character from string in javascript
str = str.substring(1);
Example 3: javascript slice string from character
var input = 'john smith~123 Street~Apt 4~New York~NY~12345';
var fields = input.split('~');
var name = fields[0];
var street = fields[1];