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

Maria Te
Maria Te
8,518 Points

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.

Maria Te
Maria Te
8,518 Points

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