Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
What is the difference between single-line and multi-line 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 */
Advertisements
