Created
August 16, 2019 07:06
-
-
Save Mayankgupta688/c08b4c7f35e818f922f09ff6e1032350 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var userInfo = { | |
name: "Mayank", | |
age: 30, | |
salary: 10000, | |
designation: "Developer" | |
} | |
var newObject = Object.create(userInfo); | |
newObject.name = "New Name"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment