Token (Definition)

Tokens are the fundamental components that an executable script is built from.

Availability:

ECMAScript edition - 2

A token is the smallest component of a source script text that can be interpreted.

Tokens are the actual components that an executable script is built from. They may be reserved words, identifiers, punctuator symbols or literals.

You cannot use reserved words as identifier names.

The reserved word set is comprised of the structural statements that you use to make a script work.

The null literal is simply the keyword null.

The Boolean literals are the keywords true and false.

See the reserved words topic for a list of all currently defined reserved words.

See also:Boolean literal, Cast operator, Identifier, Keyword, Lexical convention, Lexical element, Literal, Null literal, Punctuator, Reserved word, Reserved Word

Cross-references:

ECMA 262 edition 2 - section - 7.4

ECMA 262 edition 3 - section - 7.5