3.03 · Lab
Functions
Three small circuits, the same shape each time. Declaring one and firing one are two different moves — repetition is what turns that from a sentence into a habit.
Exercise
Wire three small circuits
Checks itself — try as often as you likeWrite three functions in the script pane, each with one parameter:
double(n)— returnsn * 2.triple(n)— returnsn * 3.shout(word)— returnsword + "!!!".