Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 7, 2016 19:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/2af770e90381a57bf43c999867da99c0 to your computer and use it in GitHub Desktop.
Save codecademydev/2af770e90381a57bf43c999867da99c0 to your computer and use it in GitHub Desktop.
Codecademy export
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