DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
Js last word in a string
String test = "This is a sentence"; String lastWord = test.substring(test.lastIndexOf(" ")+1);
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#Js
#word
#string
ADD COMMENT
Topic
COMMENT
Name
6+4 =
Submit