Home / Report Question

Q. What is the correct way to unwrap an optional using `guard`?
  • A. guard let value = optionalValue else { return }
  • B. guard value = optionalValue ? else { return }
  • C. guard optionalValue != nil else { return }
  • D. if value = optionalValue else { return }