That'll make a little more sense in a minute. A prompt is set up as the variable answer . We now have two variables named the same. Keep that in mind. Don't forget the parentheses .
Single equals are for use outside of parentheses.
Remember, string values must be surrounded by quotes. The input is looked at. Remember that JavaScript is case-sensitive. You must type yes for the condition to be true. You can fix this by adding more and more IF statements covering all caps or capitalized answers.