E-Learning Platform
0 of 139 builtAlways freeSign in
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 like

Write three functions in the script pane, each with one parameter:

  • double(n) — returns n * 2.
  • triple(n) — returns n * 3.
  • shout(word) — returns word + "!!!".