♒Variables
How to declare variables?
Types
Based on mutability:
Immutable (constants) - Cannot be changed
Mutable (vars) - Can be changed
Examples
Vars
Without Assignment
With Assignment
Inferred
Constants
Explicit Type
Inferred Type
Last updated