Important Notice:

Course Content
Switch Statement
0/1
break and continue Statements
0/3
Basic Form Validation in JavaScript
0/1
JavaScript & Angular JS (Chapter- 6) M2-R5.1
About Lesson

JS Comment:-

          JavaScript में Comment non-executable होता है। कुछ JavaScript code में additional information, documentation के लिए Comment का इस्तेमाल किया जाता है। JavaScript में comments की lines Browser में JavaScript द्वारा ignore की जाती है। JavaScript के code का execution भी comment से बंद किया जाता है।

i. Single line comment

ii. Multi line comment

Single Line Comment:-

                 JavaScript में single line comment के लिए //(double slashes) का इस्तेमाल किया जाता है |

Syntax:-   // any remark or comment or message

Multi-line Comment:-

                      JavaScript में multiline comment के लिए /*——*/ इस के बीच में comment लिखी जाती है |

Syntax:-   /* any remark

                              Comment or message

                              As block comment */

 

JS Comment:-

                              Comment in JavaScript is non-executable. Comment is used for additional information, documentation in some JavaScript code. Comment lines in JavaScript are ignored by JavaScript in the browser. The execution of JavaScript code is also stopped by comment.

i. Single line comment

ii. Multi line comment

Single Line Comment:-

                       //(double slashes) is used for single line comment in JavaScript.

Syntax:-         // any remark or comment or message

Multi-line Comment:-

            For multiline comment in Javascript, comment is written between /*——*/.

Syntax:-   /* any remark

                              Comment or message

                              As block comment */

error: Content is protected !!