Swift - Variables and Constants
Which of the following is a correct way to declare a constant string named
greeting with the value "Hello" in Swift?greeting with the value "Hello" in Swift?let to declare constants, not const or constant.let greeting = "Hello" correctly declares a constant string with the value "Hello".15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions