मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

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×