CodeLab Academy 📞 9936 6696
← List Scratch · Level 9: My blocks and messages Quiz · 45 points ← #881 #883 →

#882. My own block: add up

When the green flag is clicked, the script on the left runs. What is the value of the **total** variable at the end?
define add up (a) (b)
change [total v] by ((a) + (b))

when green flag clicked
set [total v] to (0)
add up (12) (8)
add up (8) (7)

💡 Not sure? Build it in Scratch and try it out.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!