Consider (https://jsfiddle.net/h9jz2yfs/) // currying function who(func) { let profile=''; return function(name) { profile+=`my name is ${name} `; return function(age) { profile+=`and i'm ${age} years old `; return f...
Markdown supported · ⌘↵ to post
No responses yet.