Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get first word of string js

let myStr = "Hello World"
let firstWord = myStr.split(" ")[0]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #word #string #js
ADD COMMENT
Topic
Name
4+7 =