Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 64 additions & 7 deletions assignments/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,79 @@
// 5,adaine5@samsung.com,Antonietta,F

// Example format of an intern object: 1,examples@you.edu,Example,F
let example = {
"id": 0,
"name": "Example",
"email": "examples@you.edu",
"gender": "F"
}


// let example = {
// "id": 1,
// "name": "Example",
// "email": "examples@you.edu",
// "gender": "F"
// }

// Write your intern objects here:

let mitzi = {
"id": 1,
"name": "Mitzi",
"email": "mmelloy0@psu.edu",
"gender": "F"
};

let kennan = {
"id": 2,
"name": "Kennan",
"email": "kdiben1@tinypic.com",
"gender": "M",
"speak": "Hello, my name is Keven"
};
let keven = {
"id": 3,
"name": "Keven",
"email": "kmummery2@wikimedia.org",
"gender": "M",
};
let gannie = {
"id": 4,
"name": "Gannie",
"email": "gmartinson3@illinois.edu",
"gender": "M"
};
let antonietta = {
"id": 5,
"name": "Antonietta",
"email": "adaine5@samsung.com",
"gender": "F",
multiplyNums: function(a, b) {
return a * b;
},
};


console.log(antonietta.multiplyNums(3,4));

x8
console.log(kennan.speak);


console.log(mitzi.name);

console.log(kennan.id);

console.log(keven.email);

console.log(gannie.name);

console.log(antonietta.gender);




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

// Mitzi's name

// Kennan's ID
// Kennan's ID

// Keven's email

Expand Down