Lexical element (Overview)

A component from which a script is constructed.

A lexical element is a component from which you can construct a script. It is the smallest (or most atomic) fragment that a script can be decomposed into to allow the execution mechanisms in the interpreter to operate. Each lexical element is represented by a token and the script is tokenized through a process of lexical analysis.

The following lexical elements are used to construct a script:

See also:Associativity, Comment, Constant, Identifier, int, JavaScript language, Keyword, Line terminator, Literal, Operator, Operator Precedence, Punctuator, Reserved word, Token, Whitespace