DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
word count javascript
const str = "hello world"; console.log(str.split(' ').length); // @output 2
Source by scrimba.com #
PREVIOUS
NEXT
Tagged:
#word
#count
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit