Comments in Dart

Comments are necessary when the length of code is too long usually thousands of lines per file. When you share your code to others, a well commented code is easy to understand for any other person who will read it. This is better than cracking our heads on what a for loop iterates on!

This helps even for our reference of same code after a significant amount of time. Because it's usual that we don't remember all the code we write, right?

To make comments in dart we use following syntax:

1. //This is a comment
2. int a = 100; // This is a comment after a code statement
3. /* This is a
4. multiline
5. comment */



Need more Information?
Click here for YouTube Link
Very Easy! Follow my video lectures on YouTube link and keep reading my blog here for more information. In the video lectures, I have explained all the basic and minor details. The same content will be posted on this website if you like reading more than watching.