Learn Dart from your first print() to a small project, with sound null safety and every exercise checked as you go.
8 lessons, 16 exercises. Runs Dart 3.13.
Not started
Hello, output
Print text to the screen, add comments, and see how a Dart program starts in main() and runs from top to bottom.
Values and variables
Store values in variables, meet Dart's basic types, and choose between var, final and const.
Reading input and arithmetic
Read lines from standard input with stdin.readLineSync(), turn them into numbers, and calculate with Dart's operators.
Making decisions
Choose what your program does with if/else, comparison and logical operators, and Dart's switch expressions.
Loops
Repeat work with for, for-in and while loops, and leave a loop early with break and continue.
Functions
Package code into named functions with parameters and return values, use arrow syntax and named parameters, and understand scope.
Collections
Keep many values together in Lists, Sets and Maps, and loop over, search and update them.
Strings and a small project
Slice, search, change and format text with Dart's String methods, then combine everything so far into a receipt printer.
Your progress is saved in this browser. Sign in to keep it on every device.