Forums
Learn
Careers
Store
About
SUBSCRIBE
BLACK FRIDAY: Save 50% on all my Swift books and bundles! >>
Question 1/12: This code is valid Swift – true or false?
Hint: Infinite loops are commonly made using while true but other conditions can also work. Click to show.
while true
for name in ["Taylor"] { print("Welcome, \(name)!") }
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.