- Variables are defined using the var keyword.
- It is mandatory to specify the type when defining a variable.
- Variable names can be a maximum of 64 characters long.
- Variable names can contain letters, numbers, or underscores (_). However, a variable name cannot start with a number.
- Variables with the same name cannot be defined in the same scope.
- Assignment of a value to a variable can be done at the time of declaration or later.
- A variable is defined in the following format.
var <var_name> : <var_type>