Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialC McGowan
6,866 PointsI dont necessarily understand the question, where do I start?
var initialScore = 8
initialScore += 1
initialScore == 10
let isWinner = !false
// Enter your code below
var initialScore = 8
initialScore += 1
initialScore == 10
let isWinner = !true
1 Answer
Magnus Hållberg
17,232 PointsYou are supposed to check if initialScore is not equal to 10, you are checking if its equal to 10 and you are not using the isWinner constant to do the job. In your example you are "hard coding" the Boolean value, this is how it should look:
var initialScore = 8
initialScore += 1
let isWinner = initialScore != 10
C McGowan
6,866 PointsC McGowan
6,866 PointsTHANK YOU! Super helpful