iOS Swift Basics Swift Operators Working With Operators: Part 2

qifeng sun
qifeng sun
6,274 Points

Really don't know how to do this step

I always wanna use if loop

operators.swift
// Enter your code below

var initialScore = 8

initialScore += 1

let isWinner = 10

isWinner !=10

1 Answer

Jeff McDivitt
Jeff McDivitt
17,777 Points

You have the isWinner = 10 and that is not what the task asks for

var initialScore = 8

initialScore += 1

let isWinner = initialScore != 10