6. story heat up (wrong reactions)


#1

Can anyone help explain this? I said "No" to the invitation to race on Bieber's concert, but the console shows up with the answer of "Yes", I kept trying but just kept showing this. Not sure if its wrong code or system error. :frowning:

Thanks!!!


#2

hi @zoeliang
line 10 if(userAnswer="yes")
in this line you set userAnswer to "yes"
"=" is not a comparison operator you have to use "=="

use if(userAnswer=="yes")


#3

You should try spacing out your code so its easier to trace back for future projects that will use more if/else statements.