Skip to content

Commit 309a6cc

Browse files
author
pedro
committed
Wrote intern objects and did challenge bloominstituteoftechnology#2
1 parent f634632 commit 309a6cc

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

assignments/objects.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,55 @@ const example = {
1818
}
1919

2020
// Write your intern objects here:
21+
const mitzi = {
22+
"id": 1,
23+
"name": "Mitzi",
24+
"email": "[email protected]",
25+
"gender": "F"
26+
}
27+
const kennan = {
28+
"id": 2,
29+
"name": "Kennan",
30+
"email": "[email protected]",
31+
"gender": "M",
32+
}
33+
const keven = {
34+
"id": 3,
35+
"name": "Keven",
36+
"email": "[email protected]",
37+
"gender": "M"
38+
}
39+
const gannie = {
40+
"id": 4,
41+
"name": "Gannie",
42+
"email": "[email protected]",
43+
"gender": "M"
44+
}
2145

46+
const antonietta = {
47+
"id": 5,
48+
"name": "Antonietta",
49+
"email": "[email protected]",
50+
"gender": "F",
51+
}
2252

2353
// ==== Challenge 2: Reading Object Data ====
2454
// Once your objects are created, log out the following requests from HR into the console:
2555

2656
// Mitzi's name
57+
console.log(mitzi.name);
2758

2859
// Kennan's ID
60+
console.log(kennan.id);
2961

3062
// Keven's email
63+
console.log(keven.email);
3164

3265
// Gannie's name
66+
console.log(gannie.name);
3367

3468
// Antonietta's Gender
69+
console.log(antonietta.gender);
3570

3671
// ==== Challenge 3: Object Methods ====
3772
// Give Kennan the ability to say "Hello, my name is Kennan!" Use the console.log provided as a hint.

0 commit comments

Comments
 (0)