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 Swift Basics Swift Operators Working With Operators: Part 2

I do not understand this question

I do not really know what the question is asking, if anyone can specify what it is looking for or what I need to do please, thank you

operators.swift
// Enter your code below

var initialScore = 8

initialScore += 1

let isWinner != 10

1 Answer

I had a little trouble understanding this challenge as well. The challenge is asking you to declare a constant that checks if initialScore is equivalent to 10 or not. It might be hard to understand but the answer to the code challenge should look like this:

var initialScore = 8
initialScore += 1

let isWinner: Bool = initialScore != 10

This one is saying that if initialScore isn't equal to 10 then the isWinner constant equals to true. This should be able to pass the code challenge. I hope that this helped.

If this answer had helped in any way, please mark it as best answer.