Might possibly be because you are required to use two equals signs in some languages when comparing values. One equals sign indicates definition of a variable, two equals signs means a comparison. That's the case in Java anyway, not completely sure about JavaScript, but you should try it. So instead of: if (userAnswer="yes") Try: if (userAnswer=="yes")
It seems like that would make some kind of error and not run at all though, but I'm pretty sure you're right, and it is supposed to be == in javascript.