Skip to content

Commit 47e6927

Browse files
Added a .html file that demonstrates the use of exponents and scientific notation for representation of numbers in JS.
1 parent d739b0b commit 47e6927

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

34.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<title>JS Tutorials 205</title>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
</head>
9+
<body>
10+
<h1>JavaScript Numbers</h1>
11+
<p>Extra large or extra small numbers can be written with scientific (exponent) notation.</p>
12+
<p id="target"></p>
13+
</body>
14+
<script>
15+
let x = 123e5;
16+
let y = 123e-5;
17+
18+
document.getElementById("target").innerHTML = x + "<br>" + y;
19+
</script>
20+
</html>

0 commit comments

Comments
 (0)