0

// comments serve what purpose?

I dont understand the point in comments if They do not exicute

12th Sep 2018, 5:11 PM
Chad Crow
Chad Crow - avatar
4 Respostas
+ 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.
12th Sep 2018, 5:33 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 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.
12th Sep 2018, 6:09 PM
BraveHornet
BraveHornet - avatar
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
12th Sep 2018, 6:06 PM
Chad Crow
Chad Crow - avatar