loading
open in
main.js
1
2
3
4
5
6
7
8
9
console.log('String padStart, padEnd');
console.log('');
console.log('Add more space before string');
console.log('0.00'.padStart(5));

console.log('');
console.log('add * after string');         // "backbone**" is 10
console.log('js'.padEnd(5, '*'));         // "backbone**" is 10
Native Browser JavaScript