Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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); // ""
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #remove #character #string
ADD COMMENT
Topic
Name
6+1 =