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 trial

iOS

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,

Mitch

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!