-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtut52.html
More file actions
38 lines (33 loc) · 998 Bytes
/
tut52.html
File metadata and controls
38 lines (33 loc) · 998 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Arrays and Objects</title>
</head>
<body>
<div class="container">simple si html</div>
<script>
let myVar = 34;
let myVar2 = "string";
let myVar3 = true;
let myVar4 = null;
let myVar5 = undefined;
// let employee = {
// name: "Harry",
// salary: 10,
// channel: "CodeWithHarry",
// "channel 2": "ProgrammingWithHarry",
// }
// console.log(employee);
// let names = [1, 2, 4, "Harry", undefined];
// let names = new Array(41, 2, 4, "Harry", undefined);
let names = new Array(23);
console.log(names.length);
names = names.sort();
names.push("this is pushed");
console.log(names);
</script>
</body>
</html>