Skip to main content

Declarations

Declarations let you assign a value to a variable:
The syntax is: {var name} = {expression} This makes the variable have the same value as the evaluated expression on the right. It allows for reassignment later on (mutable variable):

Definitions

Definitions act exactly the same as declarations, but once the variable is assigned the value, the variable becomes immutable and it cannot be changed. The syntax is: {var name} == {expression}

Locking

Locking is the practice of making a mutable variable, immutable. It is done by: