how can i replace all the white spaces from a string javascript code example
Example: replace white spaces javascript
const name = 'Hi my name is Flavio'
name.replace(/\s/g, '') //HimynameisFlavio
const name = 'Hi my name is Flavio'
name.replace(/\s/g, '') //HimynameisFlavio