DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+2 =
Submit