Created
September 16, 2018 12:52
-
-
Save hg-pyun/b5d617341dd3e583709ae30ddd6db07b to your computer and use it in GitHub Desktop.
currying.13.js
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
renderHtmlTag = tagName => content => `<${tagName}>${content}</${tagName}>` | |
renderDiv = renderHtmlTag('div') | |
renderH1 = renderHtmlTag('h1') | |
console.log( | |
renderDiv('this is a really cool div'), | |
renderH1('and this is an even cooler h1') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment