-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path05-variables.html
More file actions
44 lines (31 loc) · 775 Bytes
/
Copy path05-variables.html
File metadata and controls
44 lines (31 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Variables</title>
</head>
<body>
<script>
let variable1 = 3;
console.log(variable1);
const calculation = 2 + 2;
console.log(calculation);
console.log(calculation + 2);
const result = calculation + 2;
console.log(result);
const message = 'hello';
console.log(message);
variable1 = 5;
console.log(variable1);
variable1 = variable1 + 1;
console.log(variable1);
variable1 = 'hello';
console.log(variable1);
const variable2 = 3;
var variable3 = 3;
console.log(typeof variable2);
console.log(typeof message);
</script>
</body>
</html>