Chore Door Step 10 Door wont open!

Hello there,

Can anyone please help? Im working on this project:

https://www.codecademy.com/paths/web-development/tracks/build-interactive-websites/modules/web-dev-interactive-websites/projects/chore-door

and im up to step 10 but my door wont open, ive checked for typos, and ive checked the walkthrough and I cant find any obvious reasons! Maybe I have just been staring at it too long!

Thanks in advance!

Here is my code:

HTML

Chore Door!

CSS

body {
background-color: #010165;
margin: 0px;
}

#door1 {
cursor: pointer;
}

JavaScript

let doorImage1 = document.getElementByID(‘door1’);
let botDoorPath = “https://s3.amazonaws.com/codecademy-content/projects/chore-door/images/robot.svg

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

 getElementById

Check the casing of your method name.

Alternatively, you could use,

 document.querySelector('#door1')

I had just come back to delete my post because id had a break and come back with fresh eyes and saw it right away! Thank you for taking time to respond.

1 Like