The toExponential() method of a number returns a string representing it in exponential notation.

    
    const number = 10000

    const numberToExponential = number.toExponential();

    console.log(numberToExponential);
    // "1e+4"