Swift - Variables and Constants
You want to track a user's score that changes during gameplay. Which Swift code snippet correctly declares and updates this score?
var to declare score so it can be changed.score += 5 increments the score by 5.let, which is immutable.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions