Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get last three characters of string javascript

var member = "my name is Afia";

var last3 = member.slice(-3);

alert(last3); // "fia"
 
PREVIOUS NEXT
Tagged: #characters #string #javascript
ADD COMMENT
Topic
Name
5+6 =