Cómo verificar cuántas cuerdas hay en una oración JavaScript
function WordCounter (str) {
var words = str.split(" ").length;
return words;
}
// this should work!
TechWhizKid