What does object.create do?
Answer / Saurabh Pratap Singh
[n {n "description": "object.create() is a JavaScript method that creates a new object and makes the newly created object a prototype of an existing object.n ",n "example": "n let proto = {"a": 1};n let obj = Object.create(proto);n console.log(obj.a); // Outputs: 1"n },n {n "description": "object.create() can also accept a second argument, propertiesObject, to set initial values for the new object.n ",n "example": "n let proto = {"a": 1};n let obj = Object.create(proto, {"b": {"value": 2, "writable": true}});n console.log(obj.b); // Outputs: 2"n }n]
| Is This Answer Correct ? | 0 Yes | 0 No |
Is jwt stateless?
Which browsers provide native JSON support?
What is the use of json in java?
How to receive json data at the server side?
How to define a json object from a string?
What is serialization and deserialization in json?
What does $.parsejson() do ?
Explain JSON Arrays?
What is json parsing?
Explain JSON Syntax Rules?
Explain in detail about the advantages and features of json?
which function is used to convert a JSON text into an object?