Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get last n characters of string

'abc'.slice(-1); // c
 
PREVIOUS NEXT
Tagged: #javascript #characters #string
ADD COMMENT
Topic
Name
1+1 =