how to detect if a character in a string is space javascript code example
Example: js find space in string
if(str.indexOf(' ') >= 0){
console.log("contains spaces");
}
if(str.indexOf(' ') >= 0){
console.log("contains spaces");
}