Why Aren't The Doors Opening - https://www.codecademy.com/paths/web-development/tracks/build-interactive-websites/modules/web-dev-interactive-websites/projects/chore-door

When I click the door nothing happens, any help is appreciated. Thank You!
Here is my code:

let doorImage1 = document.getElementById('door1')

let doorImage2 = document.getElementById('door2')

let doorImage3 = document.getElementById('door3')

let botDoorPath = 'https://content.codecademy.com/projects/chore-door/images/robot.svg'

let beachDoorPath = 'https://content.codecademy.com/projects/chore-door/images/beach.svg'

let spaceDoorPath = 'https://content.codecademy.com/projects/chore-door/images/space.svg'

let closedDoor = 'https://content.codecademy.com/projects/chore-door/images/closed_door.svg'

const startButton = document.getElementById('start')

let numClosedDoors = 3

let openDoor1;

let openDoor2;

let openDoor3;

const isClicked = (door) => {

if (door.src = closedDoorPath) {

return false;

} else {

return true;

}

}

const playDoor = (door) => {

numClosedDoors--;

if (numClosedDoors === 0) {

gameOver('win');

} 

}

const randomChoreDoorGenerator = () => {

const choreDoor = Math.floor(Math.random()*numClosedDoors);

if (choreDoor === 0) {

openDoor1 = botDoorPath;

openDoor2 = beachDoorPath;

openDoor3 = spaceDoorPath;

} else if (choreDoor === 1) {

openDoor1 = spaceDoorPath;

openDoor2 = botDoorPath;

openDoor3 = beachDoorPath;

} else if (choreDoor === 2) {

openDoor1 = beachDoorPath;

openDoor2 = spaceDoorPath;

openDoor3 = botDoorPath;

}

}

doorImage1.onclick = () => {

if (!isClicked(doorImage1)) {

doorImage1.src = openDoor1;

playDoor(doorImage1);

}

}

doorImage2.onclick = () => {

if (!isClicked(doorImage2)) {

doorImage2.src = openDoor2;

playDoor(doorImage2);

}

}

doorImage3.onclick = () => {

if (!isClicked(doorImage3)) {

doorImage3.src = openDoor3;

playDoor(doorImage3);

}

}

const gameOver= (status)=> {

  if ( status === 'win'){

    startButton.innerHTML= 'You win! Play again?';

  } else {

    startButton.innerHTML= 'Game Over! Play again?'

  };

};

randomChoreDoorGenerator()

Hi @java1783553710

it’s difficult to tell without the html, but what you’re doing in the above if condition is assigning rather than comparing. That doesn’t work.

No, That wasn’t it, but thank you!