-
-
Save codecademydev/4c14fbda6c0995ac744d51f53acb3f15 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 = { | |
'Fuel Type' : 'Turbo Fuel', | |
'Active Mission' : true, | |
homePlanet : 'Earth', | |
numCrew: 5 | |
}; | |
let propName = 'Active Mission'; | |
// Write your code below | |
let isActive = spaceship['Active Mission']; | |
console.log(spaceship[propName]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment