Created
April 12, 2019 18:17
-
-
Save andreipaz/28bf4fd69939459e5d95dd52ecd4ca42 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
try { | |
newLove = life.find('love); | |
} catch (e) { | |
life.mistakes.push(e); | |
life | |
.mistakes() | |
.handleRejection((mistakes) => { life.learn(mistakes) }) | |
} finaly { | |
life.sucks(); | |
} | |
class Life extends Pleasure, Pain { | |
mistakes: []; | |
learn() { | |
this.mistakes.forEach((err) => { | |
err | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment