πΊοΈ Treasure Map
β¬ Build a function
β¬ Call the function twice
β¬ Collect 2 gems
β¬ Reach the treasure
Build a function first. Then call it in the main program.
π
Badge earned: Function Explorer!
π§ͺ Function Builder
Function: a reusable group of commands. Build it one time, then call it many times.
myPathFunction()
π§© Main Program
Winning idea: build a small pattern once, then reuse it.