-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut27.htm
More file actions
41 lines (35 loc) · 901 Bytes
/
tut27.htm
File metadata and controls
41 lines (35 loc) · 901 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
<!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>Arrays ANd Objects</title>
</head>
<body>
<div class="class">Simple si html</div>
<script>
let myvar = 34;
let myvar2 = "hi";
let myvar3 = true;
let myvar4 = null;
let myvar5 = undefined;
// let employee={
// name :"Saksham",
// "class1 2" : 10,
// rollno : 18,
// hobby : "coding",
// }
// In a console we will write like this and it will print 10
// employee["class1 2"]
// 10z
// console.log(employee)
// let names = new Array(41,55555, 2, 3,"saksham",undefined );
let names= new Array(23);
console.log(names.length);
names= names.sort();
names.push("This is pushed")
console.log(names);
</script>
</body>
</html>