#322. Bonus
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 (0) set [x v] to (61) if <(x) > (21)> then change [score v] by (10) end change [score v] by (1)
# When the green flag is clicked
score = 0
x = 61
if x > 21:
score += 10
score += 1
let score = 0, x = 0;
// When the green flag is clicked
score = 0;
x = 61;
if (x > 21) {
score += 10;
}
score += 1;
💡 Not sure? Build it in Scratch and try it out.