1const removeSpaces = str => str.replace(/\s/g, '');
2
3// Example
4removeSpaces('hel lo wor ld'); // 'helloworld'
1const greeting = ' Hello world! ';
2
3console.log(greeting);
4// expected output: " Hello world! ";
5
6console.log(greeting.trim());
7//your boy siddhesh Kuakde