Apr 13, 2025
function functionName() { /* code */ }buildPyramid suggests the function will build a pyramid.Defining a Function:
turnAround, write:
function turnAround() {
turnLeft();
turnLeft();
}
Calling a Function:
turnAround, write:
turnAround();
{}.move command.turnAround function.move();
turnAround();
turnAround isn't defined, define it:
function turnAround() {
turnLeft();
turnLeft();
}