javascript delete first character in string
var string = "abcd";
console.log(string.substring(3)); //"d"let str = " hello";
str = str.substring(1);let str = 'Hello';
str = str.slice(1);
console.log(str);
/*
Output: ello
*/
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"
Also in JavaScript:
- jquery cast to string
- array reduce
- hide checkbox jquery
- react object
- for each loop class jquery
- example use xor in
- reduce average javascript
- react native exo player build errior resize mode stringdef contextcompat
- how to display date in javascript
- nextjs with typescrip example
- js defineProperty
- js check if div have another div
- multi language website angular 6
- getusermedia example
- TypeError: client.guilds.forEach is not a function
- react clear form input field
- count occurrences of character in string javascript
- javascript regex One or more occurrences of the pattern
- react native anination 2 valuse
- local storage javascript
- best js ide
- js indexof string
- react select options
- how to use react fragment