Categories
JavaScript Tutorials

Object Types

The built-in objects can be divided into four groups:

Data wrapper objects—Object, Array, Function, Boolean, Number, and String. These objects correspond to the different data types in JavaScript. Basically, there is a data wrapper object for each different value returned by typeof with the exception of “undefined” and “null”.

Utility objects—These are Math, Date, RegExp and can come in very handy.

Error objects—The generic Error object as well as other, more specific objects that can help your program recover its working state when something unexpected happens. Events,

Created by Browser— document, window(alert, confirm)