count start spaces in jquery code example
Example 1: count the number of spacesinto a string javascript
var my_string = "John Doe's iPhone6";
var spaceCount = (my_string.split(" ").length - 1);
console.log(spaceCount)
Example 2: count the number of spacesinto a string javascript
string.concat(value1, value2, ... value_n);