

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is the difference between comments /*...*/ and /**...*/ in JavaScript?
/*…*/ and /**…*/ are multi-line comments. The following is a multi line comment in JavaScript.
/* * This is a multiline comment in JavaScript * It is very similar to comments in C Programming */
The following example shows how to use multi-line comments in JavaScript.
<script> <!-- /* * This is a multiline comment in JavaScript * It is very similar to comments in C Programming */ //--> </script>
The comment /** */ is for PHPDocumentator , which is used to make automatic documentation.
- Related Questions & Answers
- What is the difference between /* */ and /** */ comments in Java?
- What is the difference between single-line and multi-line comments in JavaScript?
- What is the difference between == and === in JavaScript?
- What is the difference between Java and JavaScript?
- What is the difference between JavaScript and ECMAScript?
- What is the difference between JavaScript and C++?
- What is the difference between jQuery and JavaScript?
- What is the difference between null and undefined in JavaScript?
- What is the difference between Bower and npm in JavaScript?
- What is the difference between call and apply in JavaScript?
- What is the difference between window.onload and document.onload in Javascript?
- What is the difference between getter and setter in JavaScript?
- What is the difference between a++ and ++a in JavaScript?
- What is the difference between functions and methods in JavaScript?
- What is the difference between setTimeout() and setInterval() in JavaScript?
Advertisements