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 words.

All symbols in JavaScript are case-sensitive.

<< 2.3 JavaScript Language Basics © 1996-2013 InetSoft Technology Corporation (v11.5) Declaration and Assignment >>