Skip to content
Milo
Search
K
Main Navigation
Tour
Get Started
Language
Features
Standard Library
Playground
Blog
More
Built with Milo
Quick Reference
Roadmap
Appearance
Menu
Return to top
Runs in your browser via the emit-js backend →
Sandbox
Lessons
1
Immutability
2
Structs
3
Enums
4
Collections
5
Contracts
6
Errors
7
JSON
8
Closures
9
Generics
10
Interfaces
11
Ownership
12
Capstone
1. Immutable by default (let vs var)
A
let
binding is immutable; a
var
is mutable. You opt
in
to change.
values.milo
▶
Run
output
loading compiler…
// edit the code, then press Run
takeaway
Immutable by default — you always know what can change out from under you.
← Back
0
/ 12 run
Run the program to unlock the next lesson
Next →