-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoops, Iterations & JSON.js
68 lines (59 loc) · 1.44 KB
/
Loops, Iterations & JSON.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
58
59
60
61
62
63
64
65
66
67
68
// JSON iteration over all for loops (for , for in , for of, for Each)
//FOR LOOP
var numbers = [60, 75, 45, 90, 80];
for (let i = 0; i < numbers.length; i++) {
console.log(numbers[i]);
}
//for in loop
var myDetails = {
Name: "AJ",
Age: 25,
YOB: 1997,
};
for (var key1 in myDetails) {
console.log(myDetails[key1]);
}
//for of loop
var marks = [95, 66, 75, 90, 44];
for (var i of marks) {
console.log(i);
}
//for each loop
var marks = [60, 75, 45, 90, 80];
marks.forEach(function (mark) {
console.log(mark);
});
var myresume = [
{
"Personal Details": {
Name: "JAMEEL AHMED",
Address: {
FlatNo: "271",
Street: "Hosaline Road, Santepet",
District: "Hassan",
State: "Karnataka",
Pincode: "573201",
},
gmail: "ajahmed4596@gmail.com",
MobileNO: "7010153390",
},
Qualification: {
Degree: "B E",
Department: "MECHATROCIS",
PassedOut: "2017",
CGPA: "7.98",
},
Skils: {
Technicals: "MERN STACK DEVELOPER",
SkillLevel: "Intermediate",
OtherSkills: "Typescript,Angular",
LanguagesKnown: "Tamil,English,Kannada",
},
Projects: {
MiniLevel: "Design and Fabrication of Wireless Gesture",
ComapnyProject: "Automation In Horn Air Gap Measuring Machine(ROOTS)",
},
Hobbies: "Badminton, Movies, Series",
},
];
console.log(myresume);