Declarations
The in-built let
function lets you define constants in the current scope.
It takes one array as an argument.
This defines name
in the current scope:
You might prefer to leave off the brackets:
Overloading
You can define the same constant more than once.
The most recently defined constant of the expected type gets used.
Scoped
Last updated
Was this helpful?