🛠 Flutter world will be ready by the end of September, 2024 🚀🔥
Learn Dart Programming
Dart Basics
Dart Syntax and Structure

Syntax and Structure in Dart

In every programming language, there are some rules and regulations that we need to follow to write a program. These rules and regulations are called syntax. Dart is a case-sensitive language. It means uppercase and lowercase letters are treated differently. For example, the variable name and Name are two different variables in Dart.

Example

Let's see a simple example of Dart program. Every dart program starts with the main() function. The main() function is the entry point of the program.

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

Output

Hello, World!