Returns a string containing a number represented in exponential notation.
toExponential(fractionDigits?)
fractionDigits optional
Number of digits after the decimal point. Must be in the range from 0 to 100, inclusive. If omitted, as many digits as necessary are used to represent the number.
A string.
(123456789).toExponential(2)
"1.23e+8"