ECMAScript data types

The educational technology and digital learning wiki
Revision as of 20:52, 30 October 2007 by Widged (talk | contribs)
Jump to navigation Jump to search

Draft

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