Skip to content

Commit 899d0cf

Browse files
Added a .html file that demonstrates the representation of numbers in JS. They can be presented/written as integers or decimals.
1 parent ffd4b9b commit 899d0cf

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

32.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 203</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>Numbers can be written with or without decimals:</p>
12+
<p id="target"></p>
13+
</body>
14+
<script>
15+
let x = 3.14;
16+
let y = 3;
17+
18+
document.getElementById("target").innerHTML = x + '<br>' + y;
19+
</script>
20+
</html>

0 commit comments

Comments
 (0)