The Basics Of JavaScript Variable Definitions & Hoisting
I wrote this tutorial as an introduction to an often overlooked subject. I can’t blame you, JavaScript is an accessible language — just pop open your text editor and you’re ready to start coding. But JavaScript has traditionally been a language of many quirks, oddball features and inconsistencies. Perhaps this article will be helpful to those who are completely new to the language.
6 min readFeb 9, 2019
Here’s a list of my best web development tutorials.
Complete CSS flex tutorial on Hashnode.
Ultimate CSS grid tutorial on Hashnode.
Higher-order functions .map, .filter & .reduce on Hashnode.
Follow me @ Twitter, Instagram & fb to never miss premium articles.
First things first. Scope is simply the area enclosed by {} brackets.
There are 3 main types of scopes that provide distinct behavior: global scope, block scope and function scope. Each scope expects different things…