Forums
Learn
Careers
Store
About
SUBSCRIBE
GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>
Question 1/6: Which of these lines of code create new variables?
Hint: New variables are only created when you use the var keyword. Click to show.
var
Option 1:
message = "Good morning, Dave!"
This needs to start with var in order to create a new variable.
Option 2:
var operatingSystem = "macOS"
This creates a variable called operatingSystem.
operatingSystem
Correct!
Oops – that's not correct.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.