Day 47

Working with console.log today.
#CodingPhase #TheCodingWay #365CodingPhaseChallenge

**********

var person =
{
firstName: 'Sean',
lastName: 'Connelly',
age: 50,
children: ['Danielle', 'Kieran'],
address: { // Embedded object
street: '555 Merryville Ln',
city: 'Broken Bow',
state: 'OK'
},
fullName: function() {
return this.firstName + " " + this.lastName;
}
}
console.log(person.firstName);
console.log(person.children[0]);
console.log(person.address); // Shows entire object
console.log(person.address.state);
console.log(person.fullName());

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2