get legnth of string code example
Example 1: string length jquery
var string = "string"
string.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!