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 write a comment in JavaScript?
Home
JavaScript
How to write a comment in JavaScript?
0
votes
asked
Jun 8, 2022
in
JavaScript
by
sharadyadav1986
How to write a comment in JavaScript?
javascrript-comment
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 8, 2022
by
sharadyadav1986
here are two types of comments in JavaScript.
Single Line Comment: It is represented by // (double forward slash)
Multi-Line Comment: Slash represents it with asterisk symbol as /* write comment here */
Related questions
+1
vote
Q: How To Comment Javascript Code?
asked
Dec 3, 2019
in
JavaScript
by
rajeshsharma
#javascript-comment
0
votes
Q: How to write a hello world example of JavaScript?
asked
Jun 8, 2022
in
JavaScript
by
sharadyadav1986
javascript-hello-world
+1
vote
Q: How To Write A Script For "select" Lists Using Javascript
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
#javascript-select
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: Can you write a random integers function to print integers with in a range in Javascript?
asked
Oct 4, 2023
in
JavaScript
by
DavidAnderson
javascript-interview-questions-answers
0
votes
Q: What is the output of following Javascript? var a = 'letsfind'; var b = 'course'; var c = a/b; document.write(c);
asked
Oct 9, 2022
in
JavaScript
by
Robin
javascript
code
0
votes
Q: Find output of below Javascript addition code document.write("1 plus 1 is " + 1 + 1);
asked
Oct 9, 2022
in
JavaScript
by
Robin
javascript
code
+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
...