DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
remove last character from string js
var str = "Your string" str = str.slice(0, -1); console.log(str) //returns "Your strin"
Source by flaviocopes.com #
PREVIOUS
NEXT
Tagged:
#remove
#character
#string
#js
ADD COMMENT
Topic
COMMENT
Name
8+3 =
Submit