Anybody help me?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Anybody help me??

i dont understand the use of this <!-- This is a comment --> . why it is used...

6th Feb 2018, 7:12 PM
Arup Saha
Arup Saha - avatar
6 Answers
+ 15
The comment tag is used to insert comments in the source code. Comments are not displayed in the browsers. You can use comments to explain your code, which can help you when you edit the source code at a later date. This is especially useful if you have a lot of code. https://www.w3schools.com/TAGS/tag_comment.asp
6th Feb 2018, 7:31 PM
NezhnyjVampir
+ 14
This is not necessary, comments are for people, not for machines😊 Just commenting is good practice, this is for you and for others who will read your code. Comments are useful for understanding what the code does and how it works.
7th Feb 2018, 7:00 PM
NezhnyjVampir
+ 14
You are welcome👍
7th Feb 2018, 7:09 PM
NezhnyjVampir
+ 5
hello my friend🙌 it's use to write information in the code.
7th Feb 2018, 7:20 PM
M.h.yaghobi
M.h.yaghobi - avatar
+ 1
so its not so important yet??
7th Feb 2018, 6:46 PM
Arup Saha
Arup Saha - avatar
+ 1
thanks a lot
7th Feb 2018, 7:09 PM
Arup Saha
Arup Saha - avatar