+ 1

Please guys, what is the function of *comment* in Javascript and html

Javascript

20th Aug 2017, 1:40 PM
John
John - avatar
2 Antworten
+ 4
//comments are used to document your code and make it easier for you & other programmers to understand the given program(code) in question. life is simple with comments, comment your code so people don't have to read your 100's, 1000's(let's not go in million's okay... XD) lines of code without any documentation(comment) good luck understanding the huge program .
20th Aug 2017, 2:01 PM
Lord Krishna
Lord Krishna - avatar
+ 1
Comments are invisible... So I don't still understand its usefulness... Pls explain better
21st Aug 2017, 1:17 AM
John
John - avatar