Number toExponential()
toExponential() method format the number in exponential notation. toExponential() accepts the number of decimal places to output as the argument.
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
<script type="text/javascript">
var num = 10;
document.writeln(num.toExponential(1)); //"1.0e+1"
</script>
</head>
<body>
</body>
</html>