---
title: "Logan Won-Ki Lee (@loganlee) | Hashnode"
description: "Linux programmer. Read the latest articles by Logan Won-Ki Lee on Hashnode."
url: "https://hashnode.com/@loganlee"
---

@loganlee

# Logan Won-Ki Lee

@loganlee · Joined July 2022

Linux programmer

### [JavaScript Y combinator and Z combinator](https://loganlee.hashnode.dev/javascript-y-combinator-and-z-combinator?utm_source=hashnode&utm_medium=feed)

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. g (x x))) f = (lx. f (x x)) (lx. f (x x)) = l(lx. f (x x)). f (x x) = f ((lx. f (x x)) (...

1 min read · [loganlee.hashnode.dev](https://loganlee.hashnode.dev/javascript-y-combinator-and-z-combinator?utm_source=hashnode&utm_medium=feed)

[Oct 25, 2022](https://hashnode.com/posts/javascript-y-combinator-and-z-combinator/635765d49c662c7afa5f3545)

### [JavaScript Closure gotchas by reference not value](https://loganlee.hashnode.dev/javascript-closure-gotchas-by-reference-not-value?utm_source=hashnode&utm_medium=feed)

Closure sometimes behave undesirably, especially when you want to get by value and not by reference. Consider function outer() { let arr=\[{accumulated:-1},{accumulated:-2},{accumulated:-3}\]; let i; for (i=0; i<3; i++) { arr\[i\]\["acc...

1 min read · [loganlee.hashnode.dev](https://loganlee.hashnode.dev/javascript-closure-gotchas-by-reference-not-value?utm_source=hashnode&utm_medium=feed)

[Oct 24, 2022](https://hashnode.com/posts/javascript-closure-gotchas-by-reference-not-value/6355f0649071d4a3e2c4107f)

### [JavaScript how to create persistent variable](https://loganlee.hashnode.dev/javascript-how-to-create-persistent-variable?utm_source=hashnode&utm_medium=feed)

First method is to return a function inside parent function. Note that the inner function has access to private property of parent. const incr=(function(v) { return function() { return ++v; } })(100); console.log(incr()); //101 consol...

1 min read · [loganlee.hashnode.dev](https://loganlee.hashnode.dev/javascript-how-to-create-persistent-variable?utm_source=hashnode&utm_medium=feed)

[Oct 23, 2022](https://hashnode.com/posts/javascript-how-to-create-persistent-variable/6355cb8a2baa7a5b6036c5d0)

### [JavaScript partial functions](https://loganlee.hashnode.dev/javascript-partial-functions?utm_source=hashnode&utm_medium=feed)

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...

1 min read · [loganlee.hashnode.dev](https://loganlee.hashnode.dev/javascript-partial-functions?utm_source=hashnode&utm_medium=feed)

[Oct 23, 2022](https://hashnode.com/posts/javascript-partial-functions/6355c06b0deebadd0c4d2e8d)

### [JavaScript Auto-bound behavior of arrow functions](https://loganlee.hashnode.dev/javascript-auto-bound-behavior-of-arrow-functions?utm_source=hashnode&utm_medium=feed)

Consider class c { a=1; autoBound = () => {console.log(this.a);} } const C=new c(); const {autoBound}=C; console.log(autoBound); autoBound(); Output () => {console.log(this.a);} 1 As you can see, even when autoBound has been extracted out f...

1 min read · [loganlee.hashnode.dev](https://loganlee.hashnode.dev/javascript-auto-bound-behavior-of-arrow-functions?utm_source=hashnode&utm_medium=feed)

[Oct 23, 2022](https://hashnode.com/posts/javascript-auto-bound-behavior-of-arrow-functions/6354c383db71c42f89e387ff)
