Swift - Variables and Constants
Which of the following is the correct way to declare a variable that can change in Swift?
var is used to declare variables that can change.let score = 10 declares a constant. const score = 10 and variable score = 10 use invalid keywords. var score = 10 is correct.var for changeable values [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions