replacing each space in a string javascript
snippet in javascript

replacing each space in a string javascript

user8976

const name = 'Hi my name is Flavio'
name.replace(/\s/g, '') //HimynameisFlavio