JavaScript: Comment

By Xah Lee. Date: . Last updated: .

In any position of a line, text starting with 2 slashs // to end of line are ignored. (except if they are inside string)

// this is single line comment

And any text between /* and */ are ignored.

/* this is
multi-line
comment. */
BUY
Ξ£JS
JavaScript in Depth

JavaScript in Depth

Basic Syntax

Value Types

Variable

String

Property

Object and Inheritance

Array

Function

Constructor/Class

Iterable 🌟

Misc