The function call can also have variables. The values stored in those variables are sent to the variables in the function definition.
Function drawSquare(side)
Repeat 4
Forward side
Right 90
// draw a square
size = 50
drawSquare(size)
|
![]() |
|---|
Fine, don't click here. See if I care. (reverse psychology is my friend)
Go back to the Lesson List page