Question 1/12: This code is valid Swift – true or false?
Hint: Click to show.
func makeBurger(withCheese: Bool) {
if cheese {
print("Here's a cheeseburger")
} else {
print("Here's a regular burger")
}
}
Link copied to your pasteboard.