-
Notifications
You must be signed in to change notification settings - Fork 0
/
52JSArray.html
34 lines (32 loc) · 893 Bytes
/
52JSArray.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Array and objects</title>
</head>
<body>
<div class="container">Web Development</div>
<script>
let myvar = 34;
let myvar2 = "Chintan Patel";
let myvar3 = true;
let myvar4 = null;
let myvar5 = undefined;
let employee = {
name: "Chintan",
surname: "Patel",
age: 19,
}
console.log(employee);
let names = new Array(1, 22, 4, "Chintan");
// console.log(names);
// console.log(names[1]);
// console.log(names.length);
names = names.sort();
// names.push("this is pushed");
console.log(names);
</script>
</body>
</html>