If you want to learn programming languages, first you should learn how to write comment in the chosen language.
Comments are ignored by the language compiler or interpreter but they are not ignored by yourself or other human beings. So comments are really important and make you productive as well as other person who want to update or correct your code.
Writing comments make you a better programmer.
There are two ways of writing comment in JavaScript.
1. Single line comment starting with // and finishing at the end of the line.
2. Multi line comment spanning more than one line starting with /* and finishing with */
Comments are ignored by the language compiler or interpreter but they are not ignored by yourself or other human beings. So comments are really important and make you productive as well as other person who want to update or correct your code.
Writing comments make you a better programmer.
There are two ways of writing comment in JavaScript.
1. Single line comment starting with // and finishing at the end of the line.
2. Multi line comment spanning more than one line starting with /* and finishing with */
Comments
Post a Comment