Forums
Learn
Careers
Store
About
SUBSCRIBE
GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>
Question 1/12: This code is valid Swift – true or false?
Hint: Parameters to closures don't have external names, and must have a type specified. Click to show.
var cleanRoom = { (name: String) in print("I'm cleaning the \(name).") } cleanRoom("kitchen")
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.