+ 3
What is the use of adding comments if one can't see it in output
6 odpowiedzi
+ 16
They are used to explain some function or working of the code.
You can always make your code more friendly to beginners by adding comments which would help them understand how a particular part of code works.
+ 5
so you can tell your future self what you were thinking when you write a convoluted mess that is held together with magic and forgotten dreams
+ 4
Just to add something - making comments in HTML may seem as going a bit too far in this, but it's still a good practice to maintain.
+ 2
comments are used to make clear the task carried out by the part of the code.It's easy for other programmers to understand your code.
+ 2
It helps you to were things are placed such as the end of a paragraph
+ 1
For your eyes only 😊