Thuta Learning
BasicProgrammingbeginner

What is Dart?

Relax. We'll talk through this in plain words — no textbook voice.

Dart is a client-focused programming language created by Google, and it can be used to write mobile, web, desktop, and backend tools. The place Dart gets used most is Flutter. In a Flutter app, most of the UI, logic, and data handling is written in Dart.

dart
// All Dart programs start from the main() function.
void main() {
  print('Hello, Dart!');
}

In this code, main() is where the program starts running. print() outputs a message to the console. In Dart, most statements need to end with a semicolon ;.

You should see
Hello, Dart!

Easy traps

  • Unlike JavaScript, where you can sometimes skip semicolons, forgetting the ; at the end of a statement in Dart can throw an error.
What is Dart? | Thuta Learning