8. Dressed to impress



Error, there was a problem with your syntax


var suitcase = {
    shirt: "Hawaiian"

if (suitcase.hasOwnProperty('shorts'))

else {
    suitcase.shorts = "solid";


I can't seem to figure out what is wrong. Tried multiple changes, need fresh eyes.


We never write a semi-colon before else; and neither do we write one at the end of the if-else statement (not an error, though).


Thanks, that fixed it.