-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
64 lines (54 loc) · 1.49 KB
/
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
58
59
60
61
62
63
64
//For the given JSON iterate over all the loops(for, for in, for of).
var jsonObject = {
name: "Gopikadevi",
age: 24,
city: "virudhunagar",
job: "Engineer"
};
//for in
for (var key in jsonObject) {
if (jsonObject.hasOwnProperty(key)) {
console.log(key + ": " + jsonObject[key]);
}
}
//for
var keys = Object.keys(jsonObject);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
console.log(key + ": " + jsonObject[key]);
}
//for of
for (var [key, value] of Object.entries(jsonObject)) {
console.log(key + ": " + value);
}
//create a own resume data in JSON format
const MyResume = {
"name": "JGopikadevi",
"email": "[email protected]",
"phone": "9789235454",
"address": "3/30,South street Anathapanaiyakkarpatti rajapalayam virudhunar",
"summary": "A dedicated and results-driven software engineer with a strong background in web development and a passion for solving complex problems.",
"education": [
{
"degree": "Bachelor of Electronics and Communication Engineering",
"university": "Dr. N.G.P Institute of Technolog",
"graduationYear": "2022"
},
{
"degree": "High School",
"school": "Vidyaa Vikas",
"graduationYear": "2018"
}
],
"skills": [
"JavaScript",
"HTML/CSS",
"SQL",
"Git",
"Docker",
"Jenkins",
"AWS services",
"Communication",
"Teamwork"]
}
console.log(MyResume);