Skip to main content

Learn JavaScript - Comment

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

Popular posts from this blog

Learn HTML in Hindi - 1st lesson.

अधिकांश HTML तत्वों में एक प्रारंभिक टैग और एक समापन टैग होता है। उद्घाटन टैग इस तरह दिखते हैं: <H1> बंद टैग इस तरह दिखते हैं: </ H1> उद्घाटन और समापन टैग के बीच एकमात्र अंतर एक समापन टैग के उद्घाटन ब्रैकेट के बाद आगे की स्लैश है।  

Learn JavaScript - Introduction

JavaScript program is made up with series of statements and each statement ends with a new line or semicolon. Its not compulsory to terminate a statement with semicolon as JavaScript interpreter use a process called Automatic Semicolon Insertion(ASI). This process will attempt to place semicolons at the end of the line for you. But, it is best practice to write statement in a new line and terminate by a semi-colon. # JavaScript # beginner # tutorial