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 trialPhilip Thrana Bergmann
3,387 PointsDifficulties with second task
I have tried to look around for help but I haven't figured out yet how to solve the second task. My last guess was: var initialScore = 8 let isWinner = initialScore + 1 != 10
Help is very much appreciated.
3 Answers
Mitch Little
11,870 PointsHi Philip,
The solution to this challenge should look like this:
var initialScore = 8
initialScore += 1
let isWinner = initialScore != 10
It appears that you have tried to add 1 to initial score whilst also using the not operator to compare the value to 10.
I hope you can understand where you have slightly gone wrong
All the best,
Mitch
Philip Thrana Bergmann
3,387 PointsShade - Sorry, I thought the question was posted in the course. Thank you, Mitch. It worked. I see I was slightly wrong.
Have a great day!
Mitch Little
11,870 PointsNo problem Philip,
All the best!
Shade Wilson
9,002 PointsShade Wilson
9,002 PointsHi Phillip, could you include what the original question for the task is?