Data Types

   

Variables can hold various types of information. These various types of informa tion are known as data types. Data types can be changed very easily, but it is always good practice to keep them constant so that you can keep track of results better and dismiss any unexpected results. Table 11.1 lists and describes the data types a variable can hold.

NOTE

Within a Boolean data type, you can also use a value of 1 for true and a value of 0 for false.


Table 11.1. Data Types

DATA TYPE

DESCRIPTION

Number

A numeric value.

String

A sequence of characters , numbers , or symbols.

Boolean

A value that is either true or false. The words are not enclosed in quotation marks.

Object

The name of an object that you create from a constructor function.

Null

A value that has no data.

Undefined

A value of a variable that has yet to be assigned a value.


   
Top


Certified Macromedia Flash MX Designer Study Guide
Certified Macromedia Flash MX Designer Study Guide
ISBN: 0321126955
EAN: 2147483647
Year: 2001
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net