Forums
Learn
Careers
Store
About
SUBSCRIBE
UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>
Question 1/6: Which of these lines create constants?
Hint: Variables are created using var, whereas constants are created using let. Click to show.
var
let
Option 1:
height = 172.1
This modifies an existing variable.
Option 2:
let width = 14.0
This creates a constant called width.
width
Correct!
Oops – that's not correct.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.