हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

What are the comments in Java Script? - Computer Applications

Advertisements
Advertisements

प्रश्न

What are the comments in JavaScript?

टिप्पणी लिखिए

उत्तर

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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 14: Introduction to Javascript - Evaluation [पृष्ठ ३१४]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 11 TN Board
अध्याय 14 Introduction to Javascript
Evaluation | Q 6. | पृष्ठ ३१४

संबंधित प्रश्न

In the below snippet, value of x is var x = 250 + 2 – 200;


Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×