Counting no of word in javascript string

99

return str.split(' ').length;

Comments

Submit
0 Comments