Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check how many strings are in a sentence javascript

function WordCounter (str) {
	var words = str.split(" ").length;
	return words;
}
// this should work!
 
PREVIOUS NEXT
Tagged: #check #strings #sentence #javascript
ADD COMMENT
Topic
Name
6+7 =