Step 10 not working for me

Hello,

I am stuck here, I don’t know why the door isn’t changing upon clicking:


let doorImage1 = document.getElementById ("door1");

const botDootPath = "https://content.codecademy.com/projects/chore-door/images/robot.svg";

doorImage1.onclick = () => {
  doorImage1.src = botDoorPath;
};

Hi!

Can you share a link to the problem?

Step 10: https://www.codecademy.com/courses/build-interactive-websites/projects/chore-door

You have a typo in your code, check spelling :slight_smile:

The general thought here is to put in things to test why it’s not working. Like log statements.

1 Like

omg i am so stupid. thanks