Last active
August 16, 2019 06:25
-
-
Save Mayankgupta688/5b8bc1e669e9b148030192bc87eb324b 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); | |
console.log(newObject) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment