Weekday Name
Easy · Control Flow
switch matches a value to cases. Map 1…7 to Monday…Sunday. Anything else is "?".
Write weekday(_:).
Next: Absolute Value
Easy · Control Flow
switch matches a value to cases. Map 1…7 to Monday…Sunday. Anything else is "?".
Write weekday(_:).
Next: Absolute Value