DeepEqual Function Exercise in JavaScript

This was a really satisfying JavaScript exercise 👇 I worked on a deepEqual function that compares two values and checks if they’re truly equal — including nested objects. What made this exercise special is that it forced me to actually understand recursion, not just memorize it. 🔑 Key insight: If a value can contain itself (objects inside objects), recursion is often the cleanest solution. I also ran into classic JavaScript quirks like: typeof null === "object" Why === doesn’t work for object comparison I made the solution public with comments here: 🔗 [https://lnkd.in/eEXeWgi2] If you’re learning JS, I highly recommend trying this exercise yourself before checking solutions. #JavaScript #FrontendDevelopment #LearningInPublic #WebDevelopment

To view or add a comment, sign in

Explore content categories