← Dart tutorial

Dart

Introduction to Dart

Dart is a language built by Google for building fast apps on any platform, it's best known today as the language Flutter apps are written in. Its syntax will feel familiar if you've used Java, JavaScript, or C#.

Example: a minimal Dart program

void main() {
  print('Hello, world!');
}
Hello, world!

Every Dart program starts execution from a main() function, no wrapping class required, unlike Java or C#, which is one small but real difference even though Dart's overall style leans C-family. If you continue into the Flutter subject after this one, everything you learn here about variables, functions, and classes transfers directly, since Flutter code is Dart code.

Example
void main() {
  print('Hello, world!');
}
Output
Hello, world!
Ready to go further?

These free tutorials are a preview of what a Code Secure Academy cohort covers, project work and all.

Explore our tracks
Don't miss out

Ready to build something real?

Create a free account to enroll in a track, and get notified the moment a cohort opens.

Create free account