Welcome to the Treehouse Community
Looking to learn something new?
Result of a comparison?? A comparison between what I don't understand anything.
I can write this with an if or else statement but in this its totally confusing.
// Enter your code below var initialScore = 8 let totalScore = ++initialScore let isWinner =
I find the instructions a bit confusing. But here's what they want:
var initialScore = 8 let totalScore = ++initialScore let isWinner = totalScore != 10
When they say assign the results of a comparison operation to isWinner, what they mean is you are to create a boolean expression and then assign it (or more accurately, its value) to the constant. If totalScore is 9 then totalScore != 10 will be false, and that value will be assigned to isWinner.
Yes! I'm always backwards. I also turn left when I hear right!
9 != 10 is true!! Thanks.