Welcome to the Treehouse Community
Looking to learn something new?
rizwa sekh683 Points
working with operators
Declare a constant named isWinner and assign the results of a comparison operation to check whether the player has won or not. For example, if the total score is not 10, then the player has won and isWinner should equal true. (Hint: Use the NOT operator)
Bummer: Make sure you're using the NOT operator to make a comparison and assign the results to a constant named isWinner
// Enter your code below var initialScore = 8 initialScore += 1 initialScore != 10 let isWinner = initialScore