The toExponential() method returns a string, with a number rounded and written using exponential notation.
A parameter defines the number of characters after the decimal point.
let a = 5.456;
console.log(a.toExponential()); // 5.456e+0
console.log(a.toExponential(2)); // 5.46e+0
console.log(a.toExponential(4)); // 5.4560e+0
console.log(a.toExponential(6)); // 5.456000e+0