The function Number.prototype.toExponential cannot accept an invalid argument. The argument to the function toExponential() must be between 0 and 20 (inclusive).
To correct this error
-
Ensure the argument to toExponential() is not too large or too small.