Remova o espaço em branco JavaScript
str.replaceAll(/\s/g,'')
.replace(/ /g,'')
Singh99
str.replaceAll(/\s/g,'')
.replace(/ /g,'')
const greeting = ' Hello world! ';
console.log(greeting);
// expected output: " Hello world! ";
console.log(greeting.trim());
//your boy siddhesh Kuakde