Frontend Fundamentals 5/20
ZhiHong Chua

ZhiHong Chua @c6z3h

About: After work, I'm either writing here or on r/dadjokes. Comment if you'd like me to explain in more detail or make posts about specific topics, let's learn together!

Joined:
Nov 7, 2021

Frontend Fundamentals 5/20

Publish Date: Feb 3
0 0

1. Describe the difference between <script>, <script async> and <script defer>

🚨 Recall which one is for critical scripts and which is for auxiliary (ads etc).

2. Debounce

Revisting GFE, I understand the need to pass the context of this via function.apply. But exactly how and why, I'm still not sure. Perhaps I need to do... Leetcode's Debounce.

Ok nevermind, seems it's more watered-down without needing to pass context like this.

3. Todo List

event.target.value and setState good.

4. Promise.all

Re-tried this a few days later and it's super easy! Guess I got a better hang of Promises.

5. Holy Grail

🚨 quite good, but can be cleaner in code, more responsive design

6. Throttle

Bonus Question! This was easy after having solved for debounce. But there are some subtleties I still don't understand.

Comments 0 total

    Add comment