Introduction to Dart
First step into modern Dart, the language of Flutter: the main function, printing with print, and comments.
Simple enough for a 5-year-old to understand
Every program starts with main
In Dart, a program starts running from the main() function. The print command outputs to the screen and moves to the next line.
void main() { print("Hello!");}Comment lines
void main() { // This is a comment — it doesn't run. print("Code here");}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (2 left)
🎯 Expected output: Hello World