var x, y; // How to declare variables
x = 5; y = 6; // How to assign values
z = x + y; // How to compute values
Spaces, tabs, and newlines can be used freely.
This allows you to format and indent the programs in a neat and consistent way that increases readability.
For example, the following code snippet can be written without semicolons:
variable1 = 100
variable2 = 200
But when written in a single line as follows, semicolons must be used
variable1 = 100;variable2 = 200
- Any text between the characters /* and */ is treated as a multiple line comment.