ECMAScript data types: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
No edit summary
m (AS3 Variable Types moved to ECMAScript data types: AS3 is basically ECMAScript)
(No difference)

Revision as of 14:27, 14 April 2008

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