Javascript Trick - Use Exponential Number Notations

Shorten code for decimal numbers using exponential notation instead of 0s

In javascript, N number of 0s after a number can be replaced with eN


5e4 = 50000

7e2 = 700

7e0 = 7

7e1 = 70

Nordible is a digital solutions provider helping organizations achieve their digital goals.

We develop and measure digital solutions, implement impactful brand promotion and SEO strategies and develop software driven by rigorous testing that help your business succeed online and beyond.

You can contact us at for business inquiries.

Follow us: