• Make sure to read the forum rules before creating a new thread or commenting on someone else's thread. The forum rules can be read on this page.

Empire War Forums

Fr_
Fr_
What kind of programs are you making?!
Magikkarp
Magikkarp
Codeacademy, I'm not writing an rpg for bieber
Snaek
Snaek
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")
assassiniv
assassiniv
i just broke your program
G
Guest
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.
Back
Top