0

Comments

Hello, the comments tag <!--my comment here-->. I don't get it, should that appear on the webpage or what? and if not what's the point of adding it?

21st Oct 2016, 9:51 PM
Manar Khatib
Manar Khatib - avatar
2 Réponses
0
The comment will not appear on the webpage. The point is that you don't have to remember what you wrote and other people will be easier to understand your code.
22nd Oct 2016, 7:47 AM
Nadezhda
0
One purpose of comments is to make the program/ code easy to understand. When you are working in a team of developers or other people are accessing your code; so that they can understand what function the code is performing. Also in lengthy programs comments may prove useful while the coder checking his/ hers code. Comments don't appear on the web page.
20th Aug 2021, 8:15 AM
Shounak Basu
Shounak Basu - avatar