If you wanted to create a line of code that would add ten to the user's current score, which code should you use?

(1 point)
• score == score + 10
• score = score + score
• score = score + 10
O if score, then +10

1 answer

The correct line of code to add ten to the user's current score is:

score = score + 10

This line takes the current value of score, adds 10 to it, and then stores the result back in score.