Say we have:
Saudi Arabia
If I do:
loc.replace(/ /g,''));
Becomes:
SaudiArabia
What if I want to replace the white space with  
?
Tried:
loc.replace(/ /g,' ')
I am looking for
Saudi Arabia
Say we have:
Saudi Arabia
If I do:
loc.replace(/ /g,''));
Becomes:
SaudiArabia
What if I want to replace the white space with  
?
Tried:
loc.replace(/ /g,' ')
I am looking for
Saudi Arabia
Did you mean this
var loc = "soudi arabia";
loc = loc.replace(/\s/g,' ');
console.log(loc)