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
  • 330,190
  • 66
  • 504
  • 555
Caleb Hu
  • 21
  • 2

0 Answers0