Dress to impress syntax error


#1



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


I get a syntax error (doesn't say which line)


var suitcase = {
    shirt: "Hawaiian"
};

if (suitcase.hasOwnProperty("shorts") === true) {
    console.log(suitcase.shorts);
};
else {
    suitcase.shorts = "blue";
};


#2

if (suitcase.hasOwnProperty("shorts") === true) {
    console.log(suitcase.shorts);
}; //Here
else {
    suitcase.shorts = "blue";
};

You have an unneeded semicolon.


#3

Thanks, that fixed it <3