What will be the output of the following code snippet?
let stringWithoutSpaces = 'Hello World'.replace(/\s/g, '');
console.log(stringWithoutSpaces);
What will be the output of the following code snippet?
let stringWithoutSpaces = 'Hello World'.replace(/\s/g, '');
console.log(stringWithoutSpaces);