I'm stuck at step 65 Chore door project. It's not responding. I have no idea

Is this part of pro-intensive course? The are very little pro-intensive users here, you might get help faster in the slack channels

Hi @lianbawi,

I don’t know how far this will take you, but just at a quick gander/code read, try applying the following update please: Note the code below has moved the closing parens in the IF statement to encompass both conditons. At this time the closing paren stops after" (!isClicked(doorImage1)", making the “&& currentlyPlaying” outside the conditional check and a syntactical error.

door1.onclick = () => {
  if(!isClicked(doorImage1) && currentlyPlaying) { //the closing paren was moved to surround both !isClicked(doorImage1) && currentlyPlaying
    doorImage1.src = openDoor1;
    playDoor(door1);
  }
}

door2.onclick = () => {
  if(!isClicked(doorImage2) && currentlyPlaying) {
  doorImage2.src = openDoor2;
  playDoor(door2);
  }
}

door3.onclick = () => {
  if(!isClicked(doorImage3) && currentlyPlaying) {
  doorImage3.src = openDoor3;
  playDoor(door2);
  }
}

thanks but what do mean by “Slack Channel”?

slack is a chat applications, as pro-intensive user you should have gotten an invite so you can communicate with the other students of the pro-intensive course

have you tried @mike_in_training suggestion? Its indeed important to have everything belonging to if condition between parentheses.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.