-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
57 lines (53 loc) · 961 Bytes
/
script.js
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// var movie ={
// Title:"Leo",
// Hero:"Vijay",
// Heroine:"Trisa",
// Director:"Lokesh Kanagaraj",
// Imdbrating:7.5,
// Budget:500,
// Cast:["GVM","Arjun","Myskin","Sandy","Janani","Madanona","Sanjay dutt"]
// }
// movie.Languages=["Tamil,Hindi"]
// console.log(movie);
// var person = {
// name: "rupan",
// age:15,
// Gender:"male"
// }
// var b =JSON.stringify(person);
// console.log(b);
// var c = JSON.parse(b)
// console.log(c);
var arr =[{
name: "John Wesley",
Age: 22
},
{
name: "Wesley",
Age: 23
}]
for(var i=0;i<arr.length;i=i+1)
{
console.log(arr[i].name,arr[i].Age);
}
var arr = [
{
"name":"rupan",
"age":"15"
},
{
"name":"chakravarthy",
"age":"05"
},
{
"name":"John",
"age":"30"
},
{
"name":"Doe",
"age":"40"
}
]
for(var i=0;i<arr.length;i=i+1){
console.log(arr[i].name,arr[i].age);
}