JavaScript mengubah _ ke ruang angkasa

var str = 'How are you';
var replaced = str.split(' ').join('_');
Different Dunlin