Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Comments

Users can place comments anywhere in the comments script. Comments by placing a /* at the start and a */ at the end.

Example: /* This is the proper structure for a comment */

Declaring Variables

Item

Description

Variable Declaration

Declare internal variables using the following format:

var variable_name;

The initial value of declared numerical variables is 0. To declare more than one variable, use a comma , between variables:

var variable_name_1, variable_name_2, ... , variable_name_n;

Users can use multiple var keywords before the program part starts.

Users can also define an initial value for the variable when declaring it using the following format:

var variable_name = 1;

Program Part

An example of a most basic statement is the function call, calculation, and storing of the result.

...