im new with regexp, so can i ask for some assistance
Using string.replace function what code that can replace spaces with comma
Input:The quick brown fox jum
Like this:
str = str.replace(/ /g, ',');
Here's a better one which will replace all strings of whitespace:
str = str.replace(/\s+/g, ',');