ECMAScript data types: Difference between revisions
(New page: {{stub}} There are a lot more of Variable types than described here. For now we describe the types you need to write basic programs. == Numbers == Number. Data type representing any sor...) |
No edit summary |
||
Line 1: | Line 1: | ||
{{stub}} | {{stub}} | ||
== Numbers == | For now, this is a simple outline to keep track of the concepts that are assumed to have been described. | ||
== Introduction == | |||
For now we describe the data types you need to write basic programs. | |||
== Primitive Data Types == | |||
Boolean, int, Null, Number, String, uint, and void. | |||
=== Numbers === | |||
Number. Data type representing any sort of number. | Number. Data type representing any sort of number. | ||
Line 8: | Line 17: | ||
uint. Unsigned integer. Data type representing a non negative integer | uint. Unsigned integer. Data type representing a non negative integer | ||
== Strings == | === Strings === | ||
A variable of string data types represent a sequence of characters. | |||
=== Boolean === | |||
Variables defined as of boolean type can hold only two values: true or false. No other values are valid. When a boolean variable is declared without being given an initial value, its value is ''false''. | |||
=== Null === | |||
The Null data type contains only one value, null | |||
=== void === | |||
The void data type contains only one value, undefined. | |||
== Complex data types in ActionScript core classes == | |||
The full list include: Object, Array, Date, Error, Function, RegExp, XML, and XMLList. We will only detail Array and Date for now. | |||
=== Arrays === | |||
=== Date === | |||
== Useful Links == | == Useful Links == | ||
* [http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00001826.html Data type descriptions] @ Adobe livedocs | * [http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00001826.html Data type descriptions] @ Adobe livedocs | ||
[[Category: Actionscript 3]] | |||
[[Category: Tutorials]] |
Revision as of 20:52, 30 October 2007
For now, this is a simple outline to keep track of the concepts that are assumed to have been described.
Introduction
For now we describe the data types you need to write basic programs.
Primitive Data Types
Boolean, int, Null, Number, String, uint, and void.
Numbers
Number. Data type representing any sort of number. int. Integer. Data type representing a number with no decimal part. uint. Unsigned integer. Data type representing a non negative integer
Strings
A variable of string data types represent a sequence of characters.
Boolean
Variables defined as of boolean type can hold only two values: true or false. No other values are valid. When a boolean variable is declared without being given an initial value, its value is false.
Null
The Null data type contains only one value, null
void
The void data type contains only one value, undefined.
Complex data types in ActionScript core classes
The full list include: Object, Array, Date, Error, Function, RegExp, XML, and XMLList. We will only detail Array and Date for now.
Arrays
Date
Useful Links
- Data type descriptions @ Adobe livedocs