-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
48 lines (46 loc) · 1.32 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
var request = new XMLHttpRequest();
request.open("GET", "https://restcountries.com/v3.1/all", true);
request.send();
request.onload = function () {
var data = request.response;
//console.log(data);
var result = JSON.parse(data);
console.log(result);
//for accessing multiple values use looping
//!using for loop
for (var i = 0; i < result.length; i++) {
console.log(result[i].reg)
}
for (let key in result){
console.log(result[key].region)
}
for(let val of result){
console.log(val.subregion,val.population);
}
}
//2 Question
const resumeData = {
"name": "SYED ABILASH S",
"contact": {
"email": "iquwansyed09@gmail.com",
"phone": "+91 7010734059",
},
"summary": "Logical and results-driven full stack developer dedicated to building and optimizing user-focused websites and applications.",
"education": [
{
"degree": "MCA(Master of Computer Application",
"institution": "karpagam academy of higher education",
"location": "Tamil nadu,Coimbatore,Echanari-641023",
"graduationDate": "july 2024"
}
],
"skills": [
"",
" coding details like drop-down menus, fonts, colors, and page layouts.",
"Problem Solving"
],
"languages": [
"JavaScript",
]
};
console.log(JSON.stringify(resumeData, null, ));