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
  • 307,513
  • 65
  • 473
  • 519
Caleb Hu
  • 21
  • 2

0 Answers0