Tag: node

Total 114 Posts

Guide to JavaScript Closures

Introduction

Closures are a somewhat abstract concept of the JavaScript language and sneak into the compiler-side of programming. However, understanding how JavaScript interprets functions, nested functions, scopes and lexical environments is imperative to harnessing its full potential.

In this article, we will try to demystify said concepts and provide a

Continue Reading

Hoisting in JavaScript

Introduction

Hoisting is a JavaScript behavior commonly known for making variables and functions available for use before the variable is assigned a value or the function is defined. In effect, it puts variable, function and class declarations to the top of their scope (the global scope or a function) before

Continue Reading