This article mainly introduces JavascriptObject object learning notes. For more information, see
Constructor
New Object ()
New Object (value)
Parameters
Value
Optional parameter. It declares the original value (that is, Number, Boolean, or String) of the Number object, Boolean object, or String object ). This object is not supported in versions earlier than JavaScript 1.1 and ECMAScript Vl.
Return Value
If the value parameter is not passed to the constructor, it returns a newly created Object instance. If the original value parameter is specified, the constructor will create and return the packaging object of the original value, that is, the Number object, Boolean object, or String object. When the Object () constructor is called as a function without the new operator, its behavior is the same as that when the new operator is used.
Attribute
Constructor
References A JavaScript function, which is an object constructor.
Method
1. hasOwnProperty ()
Check whether the object has a locally defined (non-inherited) attribute with a specific name.
The Code is as follows: