Anatomy of main() and Hello World
Write and run your very first Dart program.
Every Program Has a Start
When you run a Dart program, the computer needs to know where to begin. That starting point is a special function called main. 🏁
The main Function
Dart always looks for main first and runs it automatically. Without a main, your program has no place to start.
void main() {
}All lessons in this course
- What Dart Is and Why It Exists
- Install the SDK and Check Your Version
- Anatomy of main() and Hello World
- Printing, Comments, and Statements