Tambahkan spasi terdepan dalam string javascript
const str = 'blah',
len = str.length,
space = 4;
console.log(str.padStart(len + space, ' '));
Defeated Dingo
const str = 'blah',
len = str.length,
space = 4;
console.log(str.padStart(len + space, ' '));