Dodo doc > Functions and Variables > Constants and Enums > Constants
Any variable name starting with a lower case letter or enclosed in single quotes can be a constant name. In addition, constant names can start with a single underscore followed by a capital letter then more underscores, capital letters or digits.
A constant is declared like a variable, except that empty brackets "()" are added after the constant name. A constant always requires an initialisation value.
def step() = 4
String filename() = "scores"
A constant can be passed by value to a function like any variable. A constant cannot be passed by reference.
2 * pi
Constants can be used as prototype in exactly the same way as other variables.
^ 3.2. Constants and Enums
v 3.2.2. Enum Values