O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required