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 |
List some benefits of json over xml?
Is json is a language?
Name some of the most widely used libraries in .net for json?
What is json-rpc? What is json-rpc-java?
Is json a web service?
What is number in json?
What is serialization and deserialization in json?
What is json parsing?
What is json data. and what is one way that .net developers can work with json?
What is jsonresponse?
What is json array?
Do jwt tokens expire?