-
-
Save codecademydev/2af770e90381a57bf43c999867da99c0 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
var suitcase = { | |
shirt: "Hawaiian" | |
}; | |
if (!suitcase.hasOwnProperty('shorts')) { | |
suitcase.shorts = "red"; | |
console.log(suitcase.shorts) | |
} | |
// We check to see if the suitcase property DOESN'T have a // property & and we create and print that property |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment