Forums
Learn
Careers
Store
About
SUBSCRIBE
BLACK FRIDAY: Save 50% on all my Swift books and bundles! >>
Question 1/12: This code will evaluate as true – true or false?
Hint: Watch out for constants. Click to show.
var fibonacci = [1, 1, 2, 3, 5, 8] fibonacci.sorted() == [1, 2, 3, 5, 8]
Correct! This will evaluate as false, because the sorted array is missing the second 1.
Oops – that's not correct. This will evaluate as false, because the sorted array is missing the second 1.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.