Chapter 11. ECMAScript in VoiceXML

IN THIS CHAPTER

Comments

Variable Types

User-Defined Objects

Built-in Objects

Operators

Type Conversion

Controlling Program Execution

Summary

ECMAScript is a client-side scripting language supported by the VoiceXML language. ECMAScript is based on JavaScript 1.1. You have already seen examples of ECMAScript code in the bookstore application in variable declarations, expr attributes, and script elements.

Variables in VoiceXML are typed according to the ECMAScript specification. When used within an expr attribute, ECMAScript provides a mechanism for evaluating operations on variables of various types. When used within a script element, ECMAScript provides programmers with traditional programming ...

Get Voice Application Development with VoiceXML now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.