iOS Swift Basics Swift Operators Working With Operators: Part 2

C McGowan
C McGowan
6,443 Points

I dont necessarily understand the question, where do I start?

var initialScore = 8

initialScore += 1

initialScore == 10

let isWinner = !false

operators.swift
// Enter your code below

var initialScore = 8

initialScore += 1

initialScore == 10

let isWinner = !true

1 Answer

Magnus Hållberg
Magnus Hållberg
16,953 Points

You are supposed to check if initialScore is not equal to 10, you are checking if its equal to 10 and you are not using the isWinner constant to do the job. In your example you are "hard coding" the Boolean value, this is how it should look:

var initialScore = 8

initialScore += 1

let isWinner = initialScore != 10
C McGowan
C McGowan
6,443 Points

THANK YOU! Super helpful