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

what are the drawbacks of JSON?

1 Answers  


Is jwt stateless?

1 Answers  


What is json in javascript?

1 Answers  


Explain Syntax of JSON?

1 Answers  


What is json text?

1 Answers  


What is the use of json.parse in javascript?

1 Answers  


What is a json parser?

1 Answers  


Why do we need json?

1 Answers  


How to Parse JSON Data that is Coming from a Server in Android?

1 Answers   SkillGun Technologies,


What are the limitations of jsonp?

1 Answers  


Explain JSON Arrays?

1 Answers  


What is the extension of json file?

1 Answers  


Categories