DEV Community

ZhiHong Chua
ZhiHong Chua

Posted on • Edited on

Frontend Fundamentals 6/20

1. Deep Clone

Can do the hacky way, but there's a more proper one to try 🚨

2. Explain how a browser determines what elements match a CSS selector.

I understand the specificity, but it also has some tips on writing efficient CSS that reduces repaint or reflow.

3. Star Rating

Got the basics, 🚨 need to figure onHover

4. Array.prototype.reduce

The base case was easy to achieve, but the edge cases abit hard.

5. Function.prototype.call

It's confusing. This article might help.

Edit: that's convoluted AF. There was a much simpler answer. Just ned to understand how this works.

6. BONUS! Deep Equal

Quite related to Deep Clone, but I messed up a little on the Object identification part -- but closer than yesterday!

Top comments (0)