Swift - Variables and Constants
Which of the following is the correct way to declare a constant integer named
age with value 30 in Swift?age with value 30 in Swift?let is used to declare constants, so let age = 30 is correct.var declares a variable, not a constant. constant and const are not valid Swift keywords.let for constants = B [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions