Swift - Variables and Constants
Which of the following is the correct way to declare a mutable variable named
score with initial value 10 in Swift?score with initial value 10 in Swift?var declares a variable that can change, so use var score = 10.let creates a constant, variable and const are not valid Swift keywords.var [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions