โ† Lessons CREATOR PATH

๐Ÿงฎ Number Wizard

Lesson 11 of 20
๐ŸŽช
Themed Universe
Circus Code
Step right up โ€” let's do math under the big top! ๐ŸŽช
๐ŸŽฏ Missions
Cast 5 different math operations under the big top!
Use the magic modulo % to find leftover tickets!
Solve all 4 ringmaster puzzles โ€” no hints!
โ— โ— โ— circus.js JavaScript
1

        
      
ticket booth LIVE
Click โ–ถ Run to see your math results hereโ€ฆ

๐ŸŽฏ Ringmaster Puzzle Step 1 of 4

You sold 8 adult tickets and 4 kid tickets. Print the total using +!

๐Ÿ’ก Hint: Use var total = 8 + 4; to add, then console.log(total); to print the answer.

๐Ÿงฎ Number Wizard

In Lesson 10 you learned how to store values in var variables and print them with console.log(). Today at the ๐ŸŽช Circus Code, you'll discover JavaScript's superpower: doing math! Adding tickets, splitting treats, multiplying clowns โ€” your code is the ringmaster's calculator.

โšก Math Operators Cheat-Sheet
+add8 + 4 = 12
โˆ’subtract10 - 3 = 7
*multiply5 * 3 = 15
/divide20 / 4 = 5
%modulo17 % 5 = 2 (leftover!)
๐Ÿ”ข Numbers don't need quotes: 42 not "42"
โž• Use + - * / just like a calculator
๐ŸŽ Modulo % gives the remainder after dividing
โ–ถ๏ธ Click โ–ถ Run to test, then โœ“ Check to verify!