Skip to main content

Command Palette

Search for a command to run...

Dart Syntax: Comments & How to write effectively

Updated
1 min read
Dart Syntax: Comments & How to write effectively
V

"Hello World, I'm Vinit Mepani, a coding virtuoso driven by passion, fueled by curiosity, and always poised to conquer challenges. Picture me as a digital explorer, navigating through the vast realms of code, forever in pursuit of innovation.

In the enchanting kingdom of algorithms and syntax, I wield my keyboard as a magical wand, casting spells of logic and crafting solutions to digital enigmas. With each line of code, I embark on an odyssey of learning, embracing the ever-evolving landscape of technology.

Eager to decode the secrets of the programming universe, I see challenges not as obstacles but as thrilling quests, opportunities to push boundaries and uncover new dimensions in the realm of possibilities.

In this symphony of zeros and ones, I am Vinit Mepani, a coder by passion, an adventurer in the digital wilderness, and a seeker of knowledge in the enchanting world of code. Join me on this quest, and let's create digital wonders together!"

Comments is necessary in every programming language. Because of the comment we can write code more effectively and it also help to understand code easily to anyone. In short , Comments are fully ignored by complier.

Comment use for three ways.

  1. To give heading and description of code

  2. To mute unnecessary part of code without deletion

    Here, The syntax of the Comment

  3. documentation comment

     // this is single line comment  
    
     /* This is a   
        Multi-line comment  
     */
    
     /// This is Overridee function
    

Yes , there are three type of comments one is Single line and other is double line.

  • Mostly , Single line comment use for description of code

  • While ,Multi line comment use for mute unnecessary code of part or error part of code without removing it from original code

  • Triple line comment mostly use in hidden documentation of code and library

M

Thanks to your interesting Connections NYT and useful shares, my writing skills have improved a lot.

Learn Dart

Part 1 of 50

Dive into the Dart Language Series for an easy grasp of Dart programming essentials.

More from this blog

Vinit Mepani (Flutter Developer)

270 posts

"Vinit Mepani, passionate coder! Dive into my Dart and Flutter journey on the blog. Let's master these tech wonders together. Happy coding! 🚀"