replace all the whitespace space in a string javascript code example
Example: javascript replace all spaces
var str = 'a b c';
var replaced = str.split(' ').join('_');
var str = 'a b c';
var replaced = str.split(' ').join('_');