loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8317343213909183","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"Y29uc29sZS5sb2coJ1N0cmluZyBwYWRTdGFydCwgcGFkRW5kJyk7CmNvbnNvbGUubG9nKCcnKTsKY29uc29sZS5sb2coJ0FkZCBtb3JlIHNwYWNlIGJlZm9yZSBzdHJpbmcnKTsKY29uc29sZS5sb2coJzAuMDAnLnBhZFN0YXJ0KDUpKTsKCmNvbnNvbGUubG9nKCcnKTsKY29uc29sZS5sb2coJ2FkZCAqIGFmdGVyIHN0cmluZycpOyAgICAgICAgIC8vICJiYWNrYm9uZSoqIiBpcyAxMApjb25zb2xlLmxvZygnanMnLnBhZEVuZCg1LCAnKicpKTsgICAgICAgICAvLyAiYmFja2JvbmUqKiIgaXMgMTAK"},"asBuffer":null},"loaded":true}}
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