Execution Context in JavaScript

Published on 9th May, 2020 javascript

Topic of discussion today is "execution context", an abstract concept that holds information about the environment within which the current code is being executed. Very often, programmers use scope and execution context interchangeably but in reality, they are very different concepts. Misunderstanding them can result into very frustrating situations. In this article I will try my best to clear things up and send you in your merry way.

Read More

Hoisting in JavaScript

Published on 7th May, 2020 javascript

Topic of discussion today is "hoisting", JavaScript's default behavior of moving variable and function declarations to the top during compilation. Hoisting coupled with other concepts like scope can sometimes behave in very weird ways and can result in bugs, if not taken seriously. In this article, I'll not only show you scenarios where this can be really confusing but also will give suggestions based on my experiences.

Read More