-
-
Save codecademydev/2e1404e9e2d0d491602bf9c859518bdc to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let spaceship = { | |
passengers: null, | |
telescope: { | |
yearBuilt: 2018, | |
model: "91031-XLT", | |
focalLength: 2032 | |
}, | |
crew: { | |
captain: { | |
name: 'Sandra', | |
degree: 'Computer Engineering', | |
encourageTeam() { console.log('We got this!') }, | |
'favorite foods': ['cookies', 'cakes', 'candy', 'spinach'] } | |
}, | |
engine: { | |
model: "Nimbus2000" | |
}, | |
nanoelectronics: { | |
computer: { | |
terabytes: 100, | |
monitors: "HD" | |
}, | |
'back-up': { | |
battery: "Lithium", | |
terabytes: 50 | |
} | |
} | |
}; | |
let capFave= spaceship.crew.captain['favourite foods'[0]]; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment