How can I make extra space be removed in a string in Javascript ?
For example
I have a string the following string
var string ="how are you today";
I would like to know what function or trick I could use to dynamically remove extra space in strings in Javascript so that I can have var string ="how are you today"; instead ..
How could I do this ?
string.