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 trialDevante Phetdara
5,567 PointsI can't figure out what I'm doing wrong
I don't understand
// Enter your code below
var initialScore = 8
initialScore += 1
initialScore != 10
let isWinner = true
initialScore = isWinner
1 Answer
Elena Willen
Courses Plus Student 3,268 PointsHi Devante,
Your 3 last lines of code can be in 1 line. You just have to create the constant like you did (line 4) and assign the comparison you made (line 3). Your last line you are trying to assign a bool to an int so this will give you an error.
Hope it helps. Let me know if not! :)
Devante Phetdara
5,567 PointsDevante Phetdara
5,567 Pointsyea it helped thanks!