2

I'm not looking for simple template literals, more so the functionalities of String.format from java.

For example,

String.format("%05d",num);

if inputted 14, would output 00014. How could I do this in javascript?

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
Caleb Hu
  • 21
  • 2

0 Answers0