Ganti JavaScript Ruang Putih
const name = 'Hi my name is Flavio'
name.replace(/\s/g, '') //HimynameisFlavio
Poised Peccary
const name = 'Hi my name is Flavio'
name.replace(/\s/g, '') //HimynameisFlavio
var replaced = str.replace(/ /g, '_');