Comments
Developers often need a tool to make their code easier to understand. It’s often helpful for himself and the people he works with on code.
A comment is a text that the Dart interpreter ignores, allowing us to explain parts of the code.
Comments can be used to:
- An explanation of what the code does:
- We often comment out code blocks to avoid errors at runtime.
main.dart
Code Syntax
Dart supports single-line comments //
and multi-line comments /* */
.
Single-line comment:
main.dart
Multi-line comment:
main.dart
Everything was clear?
Course Content
Introduction to Dart
1. First Acquaintance with Dart
2. Variables and Data Types
3. Conditional Statements
4. List and String
Introduction to Dart
Comments
Developers often need a tool to make their code easier to understand. It’s often helpful for himself and the people he works with on code.
A comment is a text that the Dart interpreter ignores, allowing us to explain parts of the code.
Comments can be used to:
- An explanation of what the code does:
- We often comment out code blocks to avoid errors at runtime.
main.dart
Code Syntax
Dart supports single-line comments //
and multi-line comments /* */
.
Single-line comment:
main.dart
Multi-line comment:
main.dart
Everything was clear?