Horje
js remove first character from string Code Example
delete first character javascript
let str = 'Hello';
 
str = str.slice(1);
console.log(str);
 
/*
    Output: ello
*/
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 delete first character in string
var oldStr ="Hello";
var newStr = oldStr.substring(1); //remove first character "ello"
remove first char javascript
let str = 'Hello';
 
str = str.substring(1);
console.log(str);
 
/*
    Output: ello
*/
js remove first character from string
// Return a word without the first character
function newWord(str) {
	return str.replace(str[0],"");
	// or: return str.slice(1);
	// or: return str.substring(1);
}

console.log(newWord("apple"));	// "pple"   
console.log(newWord("cherry"));	// "herry"  




Javascript

Related
ant design charts Code Example ant design charts Code Example
Material-ui add comment icon Code Example Material-ui add comment icon Code Example
flat function javascript Code Example flat function javascript Code Example
js array find Code Example js array find Code Example
save networkx graph to json Code Example save networkx graph to json Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9