DEV Community

ZhiHong Chua
ZhiHong Chua

Posted on • Edited on

Frontend Fundamentals 8/20

1. Curry

Re-doing this, now I know func.length is length of arguments passed to func. Needing to curry(func.bind(this),...) is to maintain the context even as func is passed towards inner loops. func.apply(this, allArgs) makes sure it is applied with context. But.. what is the context?

2. CommonJS vs ES modules

🚨 not difficult, but should test again later.

3. Digital Clock

✅ (Simple) System Design
✅ Coding Chops
? Clean Code -- too lazy / no time

4. Accordion

That was easy

5. Promise.any

I think it's easy, but got some syntax I could gain more familiarity with.

Top comments (0)