Chore Door Project JavaScript issue

Hello everyone, Happy New Year.

I am stuck in this exercise. My JavaScript code when I do the if statments and assign the doorImage onclick variables to any openDoor it seems that it doesn’t link to the images.

I’ve been reading the other posts about this in code academy, saw the help video of the lesson and tried to find the error by myself but I couldn’t so if someone can help me I will appreciate it a lot.

Here is the link to what I have come so far.

Chore Door Project

None of those post mentioned to use the console to debug the issue?

you get an error on line 19:

script.js:19 Uncaught TypeError: Math.Floor is not a function

learning about the dev-tools and console is highly recommended :slight_smile:

1 Like

Well no that I saw… Most problems had to do with variable declarations or issues with the lesson itself that they changed.

Can you explain me how to do it?

Well you have a console being displayed in your repl.it sandbox. That will tell you.
If you use codecademy environment and the console is not presented, use the developer tools in your browser and go to the console tab.