Variables
Variable declaration using var, final, and explicit types; constants and reassignment.
Simple enough for a 5-year-old to understand
variable with var
when you write var, Dart infers the type from the value. You can change the value later.
void main() { var name = "Alex"; var age = 36; print(name); print(age);}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)