- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 are the various types of comments in JavaScript?
Single Line comment
The following is a single line comment in JavaScript. Any text between a // and the end of a line is treated as a comment and is ignored by JavaScript.
// This is a comment. It is similar to comments in C++
Multi-Line comment
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 */
- Related Articles
- What are the various types of contracts?
- What are the various types of branches?
- What are Comments in JavaScript?
- Types of Java comments.
- What are various Text data types in Python pandas?
- What are the various return types of a controller action in C# ASP.NET WebAPI?
- What are the comments in C#?
- What are the types of tags involved in javascript?
- What are the various types of plastics? Give two examples of each type of plastics.
- What are the default values used by DB2 for various data types?
- What are the COBOL host variable equivalent for various DB2 data types?
- Name the various types of forces.
- What types of logical operators are in javascript?
- Various Types of Keys in DBMS
- What are JSP comments?

Advertisements