#javascript
Read more stories on Hashnode
Articles with this tag
Note that this topic is a sub-set of lambda calculus. First how to prove that Y combinator is a fixed-point combinator: Y f = (lg. (lx. g (x x)) (lx....
Closure sometimes behave undesirably, especially when you want to get by value and not by reference. Consider function outer() { let...
First method is to return a function inside parent function. Note that the inner function has access to private property of parent. const...
Consider (https://jsfiddle.net/h9jz2yfs/) // currying function who(func) { let profile=''; return function(name) { profile+=`my name...
Consider class c { a=1; autoBound = () => {console.log(this.a);} } const C=new c(); const...
Programming using recursion is really simple yet intuitive. Here are a few examples in js. First, a factorial function...