Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Comments | First Acquaintance with Dart
course content

Зміст курсу

Introduction to Dart

CommentsComments

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.
dart

main.dart

Code Syntax

Dart supports single-line comments // and multi-line comments /* */.

Single-line comment:

dart

main.dart

Multi-line comment:

dart

main.dart

How many times will the word Dart be displayed in the console?

Виберіть правильну відповідь

Все було зрозуміло?

Секція 1. Розділ 4
course content

Зміст курсу

Introduction to Dart

CommentsComments

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.
dart

main.dart

Code Syntax

Dart supports single-line comments // and multi-line comments /* */.

Single-line comment:

dart

main.dart

Multi-line comment:

dart

main.dart

How many times will the word Dart be displayed in the console?

Виберіть правильну відповідь

Все було зрозуміло?

Секція 1. Розділ 4
some-alt