Deviopath › Swift

Guard the Score

Easy · Optionals

guard let value = optional else { return default } unwraps or leaves early. A missing score (nil) or a negative score should return "invalid". Otherwise return "N points".

Write describeScore(_:).

Next: Min and Max