Swift - Control Flow
Which of the following is the correct syntax for a
guard statement in Swift?guard statement in Swift?guardguard condition else { ... } where the else block handles the early exit.guard condition else { return } matches the correct syntax. Options A, B, and D have missing else, extra parentheses, or misplaced keywords.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions