Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.



Get Started Now!

Comments in JavaScript

JavaScript

Two types of Comment

  • Single Line Comment
  • Multi Line Comment

Single Line Comment

Single line comments start with //.
Text between // and the end of the line will be ignored by JavaScript.

// you can assign any type of value
var imvalue = 101;

var imvalue = 101; // assign any type of value

Multi Line Comment

Multi-line comments start with /* and end with /.

Any text between / and */ will be ignored by JavaScript.

Ex: –
/* Comment Here */

Adding // in front of a code line changes the code lines from an executable line to a comment.

var imvalue = 101;
// var imvalue = 101;

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x