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