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!

SurveyJS custom survey software

Simplify data collection in your JS app with a fully integrated form management platform. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more. Integrates with any backend system, giving you full control over your data and no user limits.

Learn more

Top comments (0)

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit