0PricingLogin
Dart Academy · Lesson

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

  1. var, final, and const Explained
  2. The Core Types: int, double, String, bool
  3. Type Inference vs Explicit Types
  4. The dynamic and Object Types
← Back to Dart Academy