Name
Object — a superclass that contains features of all JavaScript objects
Availability
Core JavaScript 1.0; ECMA-262; enhanced in JavaScript 1.1 and Navigator 4
Constructor
new Object() new Object(value)
Properties
- constructor
An object’s constructor function. JavaScript 1.1; ECMA-262.
Methods
- assign(value)
Overload the assignment operator. Navigator 3; deprecated in favor of Object.watch().
- eval(code)
Evaluate JavaScript code in a string. Navigator 3; deprecated in favor of global eval() function in Navigator 4.
- toString()
Define an object’s string representation.
- unwatch(propname)
Remove a watchpoint. Navigator 4.
- valueOf(typehint)
The primitive value of the specified object. JavaScript 1.1; ECMA-262.
- watch(propname, handler)
Set a watchpoint. Navigator 4.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access