-
-
Save shahab570/5be87e5eee0314b6015a65cff85f9631 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
const men = { | |
hairColor: "Black, White, Brown", | |
eat: function () { | |
console.log("Men can eat"); | |
}, | |
sleep: function () { | |
console.log("Men can sleep"); | |
}, | |
}; | |
const women = { | |
hairColor: "Black, White, Brown", | |
eat: function () { | |
console.log("women can eat"); | |
}, | |
sleep: function () { | |
console.log("women can sleep"); | |
}, | |
}; | |
men.sleep(); //Men can sleep | |
women.sleep(); //Women can sleep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment