Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How To Comment Javascript Code?
Home
JavaScript
How To Comment Javascript Code?
+1
vote
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
How To Comment Javascript Code?
#javascript-comment
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 3, 2019
by
SakshiSharma
Use // for line comments and
/*
*/ for block comments
Your comment on this answer:
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Related questions
0
votes
Q: How to write a comment in JavaScript?
asked
Jun 8, 2022
in
JavaScript
by
sharadyadav1986
javascrript-comment
+2
votes
Q: Explain How to comment out a block of code in Python
asked
Jan 10, 2021
in
Python
by
rajeshsharma
#python-code
docstring
Python-questions-answers
+1
vote
Q: There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affects when debugging?
asked
Mar 17, 2020
in
C Plus Plus
by
SakshiSharma
#c-language-debugging
+1
vote
Q: How do you comment in Java code?
asked
Feb 1, 2023
in
JAVA
by
sharadyadav1986
java-comment
comment-code
0
votes
Q: How to write normal text code using JavaScript dynamically?
asked
Jun 9, 2022
in
JavaScript
by
sharadyadav1986
text-javascript
text-code
javascript
0
votes
Q: How to write HTML code dynamically using JavaScript?
asked
Jun 9, 2022
in
JavaScript
by
sharadyadav1986
html-code
javascript-code
0
votes
Q: How To Hide Javascript Code From Old Browsers That Dont Run It?
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
#javascript-browser
0
votes
Q: How do you invoke javascript code in an iframe from parent page?
asked
Oct 16, 2023
in
JavaScript
by
GeorgeBell
javascript-interview-questions-answers
0
votes
Q: How ++ works in Javascript? Find output of below Javascript code.
asked
Oct 9, 2022
in
JavaScript
by
Robin
javascript
code
operator
0
votes
Q: Choose the correct JavaScript syntax to change the content of the following HTML code.
asked
Oct 10, 2022
in
JavaScript
by
SakshiSharma
javascript
...