Skip to content

Commit 9dc1484

Browse files
sofialevinsofialevin
authored andcommitted
Completed Challenge 2: Reading Object Data in objects.js file.
1 parent 79fe195 commit 9dc1484

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎assignments/objects.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,24 @@ const student5 = {
5959

6060
// Mitzi's name
6161

62+
console.log(student1.name);
63+
6264
// Kennan's ID
6365

66+
console.log(student2.id);
67+
6468
// Keven's email
6569

70+
console.log(student3.email);
71+
6672
// Gannie's name
6773

74+
console.log(student4.name);
75+
6876
// Antonietta's Gender
6977

78+
console.log(student5.gender);
79+
7080
// ==== Challenge 3: Object Methods ====
7181
// Give Kennan the ability to say "Hello, my name is Kennan!" Use the console.log provided as a hint.
7282
// console.log(kennan.speak());

0 commit comments

Comments
 (0)