Comments and Names

JavaScript uses double slashes '//' to start a single line comment, and '/* */' to enclose a multi-line comment.

// single line comment

/* multi-line

   comment */

The semicolon is used as a statement separator:

var n = 0;

k = parseInt(123);

Variable names can only contain alphanumeric characters plus the underscore character (_). They cannot start with a digit and cannot use reserved JavaScript keywords.

All symbols in JavaScript are case-sensitive.

<< 2.1.3 JavaScript Syntax Basics © 1996-2013 InetSoft Technology Corporation (v11.4) Declaration and Assignment >>