Answers for "how to count space in string in js"

1

js find space in string

if(str.indexOf(' ') >= 0){
    console.log("contains spaces");
}
Posted by: Guest on December-18-2019

Code answers related to "how to count space in string in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language