The Core Types: int, double, String, bool
Meet Dart's everyday built-in types.
Dart Has Built-in Types
Every value in Dart has a type that describes what it is and what you can do with it. Four types cover most early code.
Whole Numbers With int
An int holds whole numbers with no fractional part, like counts, ages, and indexes. No decimal point is allowed.
int age = 30;All lessons in this course
- var, final, and const Explained
- The Core Types: int, double, String, bool
- Type Inference vs Explicit Types
- The dynamic and Object Types