0
// comments serve what purpose?
I dont understand the point in comments if They do not exicute
4 Réponses
+ 3
They are used to explain certain lines of the code.
You could write comments if you need to clarify your code to yourself or someone else who is reading it.
+ 2
You need it when you work with other programmer. With comments you tell them what the codesnippet do.
You also will need it when you make a long break. So you haven't read all the code, only the comments which describes the code, that saves much time.
0
thats why I was asking. since it doesnt actually exicute a commad why would you ever wanna use it. so my question was answered thanks