Swift - Loops
Which of the following is the correct syntax for using a
where clause in a Swift for-in loop?where clause in a Swift for-in loop?for-in where syntaxwhere after the sequence: for variable in sequence where condition.for item in items where item.isActive { print(item) } matches the correct syntax. The other options have misplaced or incorrect keywords: where before in, if instead of where, or a semicolon before where.where syntax [OK]where right after in sequence [OK]where before inif instead of wherewhere15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions