Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js number remove last 2 characters

let str = "123456789"
str = str.slice(0, -2); // "1234567"
 
PREVIOUS NEXT
Tagged: #js #number #remove #characters
ADD COMMENT
Topic
Name
2+2 =