Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FAQ Topic - What is a native object? (2013-05-23)

1 view
Skip to first unread message

FAQ server

unread,
May 22, 2013, 7:00:00 PM5/22/13
to
-----------------------------------------------------------------------
FAQ Topic - What is a native object?
-----------------------------------------------------------------------

A native object is any object whose semantics are fully defined by
ECMA-262.

Some native objects are built-in; others, such as user-defined objects,
may be constructed during the execution of an ECMAScript program.

Example:

// Native built-in objects:
var m = Math, // Built-in Math object.
slice = Array.prototype.slice, // Built-in native method.
o = {}, // Native user-defined object.
f = function(){}, // Native user-defined function.
d = new Date(),
a = [],
e = new Error("My Message.");

See also:

<URL: http://dmitrysoshnikov.com/ecmascript/chapter-7-2-oop-ecmascript-implementation/>


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

0 new messages