Javascript comments

Introduction

Javascript uses C-style comments for both single-line and block comments.

A single-line comment begins with two forward-slash characters, such as this:

// single line comment 

A block comment begins with a forward slash and asterisk /* and ends with the opposite */.

/* This is a multi-line 
comment */ 



PreviousNext

Related