-
Notifications
You must be signed in to change notification settings - Fork 1
Values
Frederik Tobner edited this page Nov 1, 2022
·
1 revision
Values are grouped into four different types:
- booleans,
- numbers, these are always 64-bit floating point numbers
- undefiened, the type of null
- and cellox objects, e.g. a string or a class instance
For declaring a new variable the var keyword is used and the type is infered based on the assigned value. If there is no value assigned the variable will be null and the type undefiened.
var x = 3.14;
The name of a variable must consists out of amixture of characters from a to z lower or upper case or a number or a underscores.
But like in other languages it can not start with a number.