Functions

Goal:

Write a cloud function to allow make it easier for us to draw multiple clouds. When completed, you will get a sketch will create a drawing like this:

Try it Here:

To start the project, click on the link below. Use the tutorial link and follow the instructions:

Function Project

In Depth Guide

Topics:

  • functions

Details:

When you are writing programs, it is often useful to break down tasks that may be repeated. The way to do this is to make use of functions.

The syntax for a JavaScript function statement is:

function <function name> (<parameter list>){

}

A function may return some result.

When you write a function, you can use the function by performing a function call.

results matching ""

    No results matching ""