<html>
<body>
<p>Click the button to display the exponential notation of a specified number.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var num = 5.56789;
var n = num.toExponential();
document.getElementById("demo").innerHTML = n;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_toexponential by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:02:27 GMT -->
</html>