thefrontweb

About

All Posts

Closures 101

May 26, 2022

Closure is that magical access of variables present nowhere in the current scope chain branch.

JavaScript for...in, for...of Loops

May 06, 2022

These for loops can't and shouldn't be used to loop over anything and everything. Know how to use them.

var, let, const debunked

Apr 24, 2022

Popular belief: Identifiers declared only with var are hoisted. Turns out, those with let and const are also hoisted!

Promises In JavaScript

Apr 13, 2022

A Promise is a placeholder for the result of an asynchronous operation. Chain them for superpowers.

Callbacks In JavaScript

Apr 05, 2022

Callback functions forms the basis of asynchronous JavaScript, and yet often misunderstood.