Help with Javascript interactive website?

I’m having some trouble getting the javascript to run correctly for the “Javascript Interactive Websites: Chore Door” assignment with the clickable doors.

Here is my source code:

I was hoping someone could tell me where my logic goes wrong because the doors do not change when clicking them after completing all of the steps listed in the project. They did at the beginning…

I am not sure but it seems like you dont initialize your variable ‘door’ in your is clicked check in your eventlisteners. Not sure if this is the bug tho.

Could you copy paste the code so we can test it ourselfs ? Its hard to find bugs by just reading you know.