Open in app

Sign In

Write

Sign In

Abhishek Kumar
Abhishek Kumar

Home

About

Jun 17, 2021

Closure

A closure is a combination of a function bundled together (enclosed) with references to its surrounding state. In other words, a closure gives you access to an outer function’s scope from an inner function. In JavaScript, closures are created every time a function is created, at function creation time. Consider…

Closure

2 min read

Closure
Closure
Closure

2 min read


Jun 17, 2021

Hoisting

Hoisting is the default behavior of moving all the declarations at the top of the scope before code execution. Basically, it gives us an advantage that no matter where functions and variables are declared, they are moved to the top of their scope regardless of whether their scope is global…

2 min read

Hoisting
Hoisting

2 min read

Abhishek Kumar

Abhishek Kumar

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech