English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What are the comments in Java Script? - Computer Applications

Advertisements
Advertisements

Question

What are the comments in JavaScript?

Short Note

Solution

There are two types of comments, Single line and Multiple lines comments.

  1. Single-line comments begin with a double slash (//), causing the interpreter to ignore everything from that point to the end of the line.
  2. Multiple line comments begins with /* and ends with */.

For example:
// JavaScript single line comment .
/* Multiple line
comments */

shaalaa.com
Comments in Javascript
  Is there an error in this question or solution?
Chapter 14: Introduction to Javascript - Evaluation [Page 314]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 14 Introduction to Javascript
Evaluation | Q 6. | Page 314
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×