Skip to content
Justice Tech School

Dart Syntax

Every program starts at main. Statements end with a semicolon. Blocks use curly braces and names are case sensitive. Comments use // and /* */.

Example
// a comment
void main() {
  print("Syntax"); /* inline */
}

Exercise

End a statement.

print("a")

Quiz Test

Do Dart statements end with a semicolon?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.