ECMAScript data types: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
m (Variable Types moved to AS3 Variable Types: should have AS3 in front to avoid confusions if tutorials are written for other programming languages)
No edit summary
Line 1: Line 1:
{{stub}}
{{stub}}
<pageby nominor="false" comments="false"/>


For now, this is a simple outline to keep track of the concepts that are assumed to have been described.
For now, this is a simple outline to keep track of the concepts that are assumed to have been described.

Revision as of 12:59, 31 October 2007

Draft

<pageby nominor="false" comments="false"/>

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