Picture of the author

Amit Khonde

Blog

JavaScript Interviews - Implement Memoization in JavaScript

Writing code for functions provided by the JavaScript helper libraries is a popular topic for frontend interviews. In this post, Learn about how to implement memoization in JavaScript. It involves usage of core concepts like closures and functions as return values.

What is flatMap in JavaScript? And how made my code cleaner

Array.flatMap is an array helper method provided by JavaScript. It is a mixture of two array methods Array.flat and Array.map Learn here about what it exactly does and how you can use it in day to day development.

Comparing React functional and Class Components

Resolving the dilemma between functional components and class components in React. There are obviously the syntax differences but is one of them better that the other in performance?

JavaScript Date Object Simplified

Date object in javascript represents a given point in time. It has everything you can associate with time. For example day, year, month, hour, minutes...In this post, I have tried to simplify the `Date` object as per my understanding and the most common functionalities I use in day-to-day development.

What is a closure in JavaScript and when to use one

There is a 99% chance you have faced closures question in your JavaScript interviews. The closure is such a non-trivial concept that you might have already used it without realising it. Learn about the basics of what is a closure in javascript and when to use it?

Unique HTML Tags that will make your life easier

HTML tags are the way we define structured mark up on web pages. Learn about some unique HTML tags that will reduce your JavaScript and CSS code.

JavaScript Interviews - Write a custom debounce function

Debouncing is one of the most popular concepts used on web pages today. A very common example includes an e-commerce search bar. In this post, learn about how to write a custom debounce function in JavaScript. It involves concepts like setTimeout and closures.

JavaScript Interviews - Write a custom throttle function

There are popular uses of throttling for noting user activity on scrolling or window resizing. This makes writing custom throttle function one of the hot questions for interviews. In this post, learn about how to write a custom throttle function in JavaScript. It involves concepts like setTimeout and closures.

Explain me like I am 5 - Debounce vs Throttle

Debounce and Throttle are two of the most widely used concepts in web development today. We can see their applications in almost every popular web app. Unfortunately, a lot of us are confused about the actual difference between these two. In this post, learn about debounce vs throttle by using the simplest examples.

Eval is evil - Why we should not use eval in JavaScript

Eval is a function in JavaScript that expects a string as a parameter and executes that string as code. As amazing as it sounds, there are some serious downsides to using eval in web apps. Learn in this post why we should not use eval in JavaScript.

JavaScript Interviews - Create a deep copy of an object in JavaScript

Writing code for functions provided by the JavaScript helper libraries is a popular topic for frontend interviews. In this post, Learn about how to create a deep copy of an object in JavaScript. It involves iterating keys one by one and using recursion for nested objects.