xxxxxxxxxx
string.concat(value1, value2, value_n);
xxxxxxxxxx
var my_string = "John Doe's iPhone6";
var spaceCount = (my_string.split(" ").length - 1);
console.log(spaceCount)
xxxxxxxxxx
var my_string = "John Doe's iPhone6";
var spaceCount = (my_string.split(" ").length - 1);
console.log(spaceCount)