1.

What is a guard statement?

Answer»

These are control flow statements that can be a great ADDITION if you are doing DEFENSIVE style programming. These statements EVALUATE a boolean CONDITION and proceed with the execution only if the evaluation is real. Such statements always have an else clause.
guard LET courses = student.courses! else {
   return
}



Discussion

No Comment Found