JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Follow publication

Member-only story

How to Format Numbers by Prepending a 0 to Single-Digit Numbers in JavaScript?

John Au-Yeung
JavaScript in Plain English
2 min readJan 29, 2022

--

Photo by Clément Falize on Unsplash

Number.prototype.toLocaleString

Write Our Own Function

--

--

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

No responses yet