#205. Add and subtract
When the green flag is clicked, this script runs. What is the value of the **score** variable?
when green flag clicked set [score v] to (4) repeat (5) change [score v] by (5) change [score v] by (-5) end
# When the green flag is clicked
score = 4
for _ in range(5):
score += 5
score -= 5
let score = 0;
// When the green flag is clicked
score = 4;
for (let i = 0; i < 5; i++) {
score += 5;
score -= 5;
}
💡 Not sure? Build it in Scratch and try it out.