A function is a named bundle of code
You've already *called* functions like rect() and fill(). Now you'll define your own. A function lets you give a name to a few lines of code so you can run them whenever you want, just by saying their name.
function sayHello() {
println("Hello!");
}That defines sayHello, but nothing happens yet — defining a function doesn't run it. To run the code inside, you call it by writing its name followed by parentheses: sayHello();.
Define then call
A definition sets up the recipe. A call actually cooks it. You can call the same function as many times as you like.