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 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.