-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjs4.html
35 lines (34 loc) · 1.05 KB
/
js4.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
35
<!DOCTYPE html>
<html>
<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>loops in js</title>
</head>
<body>
<div class="container">simple si HTML</div>
<script>
let myvar=34;
let myvar2="string";
let myvar3=true;
let myvar5=null;
let employee={
name: "Harry",
age: 24,
'channel 1':'codewithharry'
}
// let name=[1,2,'Harry',5]
let name=new Array(91,1,8,'harays')
console.log(employee)
console.log(name)
console.log(name.length)
name=name.sort()
name.push('this is pushed')
console.log(name)
let newone=new Array(23);
newone.push('pushed one')
console.log(newone)
</script>
</body>
</html>