Search
 
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
Name
3+4 =