Forums
Learn
Careers
Store
About
SUBSCRIBE
UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>
Question 1/12: This code is a valid extension – true or false?
Hint: Extensions can add methods and computed properties, but not stored properties. Click to show.
extension Double { var isNegative: Bool { return self < 0 } }
Correct! This is a valid extension on Double.
Double
Oops – that's not correct. This is a valid extension on Double.
Return to Review Menu
You are not logged in
Link copied to your pasteboard.