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