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
81%
17%
0%
1%
1%
Reviews
S
Sunny
5
I really liked the way of explaining.
M
M Abdullah
5
Very Nice!
P
pratima nice mall
5
good explaining
B
Bikramjit singh
5
Very helpful to web development
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
Share a personalized message with your friends.