A

Admin • 833K Points
Coach

Q. Which keyword is used to handle potential errors in Swift?

  • (A) guard
  • (B) throw
  • (C) try
  • (D) catch
  • Correct Answer - Option(C)
  • Views: 33
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

`try` is used when calling a function that can throw an error.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.