Forums
Learn
Careers
Store
About
SUBSCRIBE
TEAM LICENSES: Save money and learn new skills through a Hacking with Swift+ team license >>
Question 1/12: This code is valid Swift – true or false?
Hint: Make sure the function name and return type are both correct. Click to show.
func read(books: [String]) -> Bool { for book in books { print("I'm reading \(book)") } return true }
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.