Photo by James Harrison on Unsplash

Debouncing and throttling are techniques in javascript to optimise the application and browser performance.

What is a debounce function?

Debounce function limits the execution of a function call and waits for a certain amount of time before running it again.

Let’s take a real world scenario where we use this the most.

Most of the websites have search bar which helps the user to search with a specific keyword to get what they want. …


image credit: https://unsplash.com/photos/pl9DrjAMV6I?utm_source=unsplash&utm_medium=referral&utm_content=creditShareLink

Prototype is one of the most feared concept in JavaScript. But don’t get overwhelmed by this keyword. This article explains what is prototype and why we call JavaScript is a prototype based object oriented language.

Let’s take an example with a simple object:

let countryDetails = {
name: "India",
code: "+91",
continent: "Asia"
};

Now we can access the properties of this object using dot operator:

countryDetails.name       // "India"
countryDetails.code // "+91"
countryDetails.continent // "Asia"

It’s straightforward right, but apart from accessing the properties which are inside countryDetails object, we can also access few other methods like toString, hasOwnProperty and…


image credit: https://unsplash.com/photos/aTt_rNa3gmM?utm_source=unsplash&utm_medium=referral&utm_content=creditShareLink

This article explains when and why we should use call, apply and bind methods in Javascript.

Javascript provides wide variety of inbuilt methods to help in achieving reusable code, yet we tend to ignore them for our convenience. call, apply and bind methods are few of such methods we remember only conceptual wise.

This article helps in understanding the practical usage of call, apply and bind methods.

Before diving into these methods, let’s understand the use-case where it will come to our rescue.

Say we have two objects with few properties including a method:

let game1 = {     name: "Football",

Chidanandan P

Software Engineer. Building solutions to various e-commerce / retail use-cases. Predominantly codes in JavaScript & its libraries such as ReactJs, React Native.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store