Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What does object.create do?



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

Post New Answer

More JSON Interview Questions

Is jwt stateless?

1 Answers  


Which browsers provide native JSON support?

1 Answers  


What is the use of json in java?

1 Answers  


How to receive json data at the server side?

1 Answers  


How to define a json object from a string?

1 Answers  


What is serialization and deserialization in json?

1 Answers  


What does $.parsejson() do ?

1 Answers  


Explain JSON Arrays?

1 Answers  


What is json parsing?

1 Answers  


Explain JSON Syntax Rules?

1 Answers  


Explain in detail about the advantages and features of json?

1 Answers  


which function is used to convert a JSON text into an object?

1 Answers  


Categories