Home | | Computer Applications 11th std | Comments in JavaScript

Chapter: 11th Computer Applications : Chapter 14 : Introduction to JavaScript

Comments in JavaScript

Very important aspect of good programming style is to insert remarks and commentary directly in source code, making it more readable to yourself as well as to others.

Comments in JavaScript:

 

Very important aspect of good programming style is to insert remarks and commentary directly in source code, making it more readable to yourself as well as to others. Any comments you include will be ignored by the JavaScript interpreter. There are two types of comments, Single line and Multiple lines comments. Single-line comments begin with a double slash (//), causing the interpreter to ignore everything from that point to the end of the line. Multiple line comments begins with /* and ends with */.

 

For example:

// JavaScript single line comment//

Multiple line comments begins with /* and ends with */

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Applications : Chapter 14 : Introduction to JavaScript : Comments in JavaScript |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.