I tried this:
function animatePress(currentColour){
$("#" + currentColour).addClass("pressed");
setTimeout(function() {
$("#" + currentColour).removeClass("pressed");
}, 100);
}
I also tried to assign userChosenColour(click by us on a button) to the animatePress parameter like this: var currentColour=userChosenColour; still nothing. It is a challenge game on udemy angela yu course, it's Simon game. I'm Using jQuery.