Datatypes and variables

From JSXGraph Wiki
Revision as of 20:28, 14 July 2009 by Michael (talk | contribs) (New page: =Data types= Though JavaScript is a [http://en.wikipedia.org/wiki/Weak_typing weakly typed] programming language, there are some data types between which JavaScript sometimes variables aut...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Data types

Though JavaScript is a weakly typed programming language, there are some data types between which JavaScript sometimes variables automatically converts:

null

Null means variable has no value at all. Do not confuse null with 0 (zero)! 0 is just a number, null means just no value or a empty or non-existent reference.

undefined

A value that is undefined is a value held by a variable right after it has been created and before a value has been assigned to it.

boolean

number

string