Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Philip Thrana Bergmann
Philip Thrana Bergmann
3,387 Points

Difficulties 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.

Shade Wilson
Shade Wilson
9,002 Points

Hi Phillip, could you include what the original question for the task is?

3 Answers

Hi 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,


Philip Thrana Bergmann
Philip Thrana Bergmann
3,387 Points

Shade - 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!

No problem Philip,

All the best!