DEV Community

Coder
Coder

Posted on

Syntax of comments

void main() {
  print('Hello World!');
// this is a single line comment
//now i learned about the  syntax of commnets in dart
/* 
  this is a multiline comment
  i can write anything here
  and it will not be executed
*/
/// this is a documentation comment
}

Enter fullscreen mode Exit fullscreen mode

I understood

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay