javascript remove first character from string
let str = " hello";
str = str.substring(1);
javascript remove first character from string
let str = " hello";
str = str.substring(1);
javascript remove first character from string
var newStr = str.substring(1);
javascript remove first character from string
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"
javascript remove first character from string
let str = 'ass';
str = str.split(''); // (3) ["a", "s", "s"]
str.shift(); // (2) ["s", "s"]
str = str.join(''); // "ss"
javascript remove first character from string
let str = 'ss';
str = new RegExp('^.(.*)').exec(str)[1]; // "s"
javascript remove first character from string
let str = 's';
str = (function f(s) { // don't use on large strings
return s.length<=1?'':f(s.slice(0, -1))+s[s.length-1]
})(str); // ""
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us