Forums
Learn
Careers
Store
About
SUBSCRIBE
UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>
Question 1/12: This code is valid Swift – true or false?
Hint: Swift won't let you mix different data types. Click to show.
let yourScore = 20 var highScore = 15 if yourScore >= highScore { print("You got the high score!") }
Correct! This code is valid Swift.
Oops – that's not correct. This code is valid Swift.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.