var withSpaces = prompt('Enter a number please:'); var withoutSpaces = withSpaces.replace(/\s/g, '');
g
/\s/
global match
val = val.replace(/\s/g, '')
var str = "2365 2365" str = str.replace(/\s+/g, '');
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)