-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjs.html
More file actions
40 lines (35 loc) · 788 Bytes
/
Copy pathjs.html
File metadata and controls
40 lines (35 loc) · 788 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
<!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">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
<script>
// 1-...
let object={a: 'somestring',b: 42,c: false,d:["Saab", "Volvo", "BMW"]};
console. log(object)
// 2-...
let text = "";
for (let x in object) {
text += object[x];}
console. log(text)
//or
//for( i=0;i<object.d.length;i++) console.log(object)
// 3-...
let arry=[object1={
name:'noor',
age:20
}
,object2={
name:'zeze',
age:22
}
]
arry.push(object3={name:'ali',age:21})
console.log(arry)
</script>
</body>
</html>