Two forward slashes (//) begin single-line Javascript comments. Even if the commented text contains forward slashes, every content after the two forward slashes until the end of a line constitutes a comment.
In JavaScript, there are two types of comments.
Single-line remark
Comment with several lines.
Place two slashes "//" in front of the code or text you want the JavaScript interpreter to disregard to make a single line comment in JavaScript.
One or more lines of narrative are contained within a set of comment delimiters in multi-line comments. The comment begins with the /* delimiter and ends with the */ delimiter. Anything between those delimiters is considered a comment, therefore your comment can span numerous lines.
There is no distinction at all. All comments are eliminated such that they have no effect on the programme during execution, regardless of their format.
Learner's Ratings
4.8
Overall Rating
80%
18%
0%
2%
0%
Reviews
M
Mohammad Arif
5
very helpful for beginners
A
Ankit Singh
5
good
R
Rajendra Deshmukh
5
Thank you for providing a valuable and well-managed session
S
SHIROYA RAJAN
5
nice cource
A
Abhishek Kumar
5
Best platform of learning.
A
Anmol
5
Best courses ever.True words
T
tejas jagtap
5
best
A
Anmol
5
I have completed this course . This is the best course to learn javascript with easy explanation. Thanks LearnVern for this course.
Share a personalized message with your friends.