Dressed to Impress . is this corect?


#1

www.codecademy.com/courses/objects-ii/1/3?curriculum_id=506324b3a7dffd00020bf661#

the code works but it has no if statement

Replace this line with your code.
shirt: "Hawaiian",

shorts:"Red"
};
suitcase.hasOwnProperty("shorts")


#2

this is the code
var suitcase = {
shirt: "Hawaiian",
shorts:"Red"
};
suitcase.hasOwnProperty("shorts")


#3

I assume that by "works" you mean that a green banner is popping up.

If your code doesn't behave as specified, then what you've really found is not that your code works, but that green banner and working are two different things.

You should always judge by yourself whether your code has the desired behaviour.


#4

thank you i will try to do as you sed


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.