R

Ravina • 3.59K Points
Extraordinary

Q. Which keyword is used to declare a constant in Swift?

  • (A) let
  • (B) const
  • (C) val
  • (D) final
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina
In Swift, `let` is used to declare constants whose values cannot be changed after initialization.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.