A.1. Syntax

An ECMAScript program consists of lines of ECMAScript code separated by either a new line or a semicolon. Each line represents a declaration, an assignment, a control-flow statement, or a function call. Each of these lines typically contains, amongst other things, expressions - ECMAScript “phrases” that can be evaluated.

As in most languages, there is a set of reserved words that define atomic language operations and language features. The ECMAScript reserved words are shown in Table A-1.

Table A-1. ECMAScript reserved words
abstractelseintsuper
booleanextendsinterfaceswitch
breakfalselabeledsyncronized
bytefinallongthis
casefinallynativethrow
catchfloatnewthrows
charfornulltransient
classfunctionpackagetrue
constgotoprivatetry
continue

Get Definitive VoiceXML™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.