how to display word length in javascript code example
Example 1: javascript check string lenght
let SomeString = "Example";
console.log(SomeString.length)
Example 2: how to check how many strings are in a sentence javascript
function WordCounter (str) {
var words = str.split(" ").length;
return words;
}
// this should work!