Answers for "add leading spaced in string javascript"

0

add leading spaced in string javascript

const str = 'blah',
  len = str.length,
  space = 4;
console.log(str.padStart(len + space, ' '));
Posted by: Guest on May-25-2021

Code answers related to "add leading spaced in string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language