Created
December 27, 2019 07:52
-
-
Save sunguru98/7ffc0d893a672851dc58745383e43187 to your computer and use it in GitHub Desktop.
Markdium-Functional Programming vs Object Orietned programming in JavaScript
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 grow = () => { | |
this.height++ | |
} | |
const giveJelly = () => { | |
this.height-- | |
} | |
const Aloevera = { | |
name: 'Aloevera', | |
size: 'medium', | |
grow: grow, | |
giveJelly: giveJelly | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment