Skip to content

1. Variables

CoolElectronics edited this page Jul 3, 2022 · 1 revision

Similar to python, variables are declared by stating the name of the variable on the left and using the equals symbol with the value on the right Variables are dynamically typed, so you can declare a variable as a string and then later assign an object to it

avariable = "a string"

put avariable

the supported data types are String, Number (represented as a 32 bit float), Bool, Array, and Object

variables can also be assigned to null

anothervariable = null
Clone this wiki locally