Reasons to Avoid Using "var" for Declaring Variables in JavaScript
Introduction
This article discusses the reasons to avoid using the 'var' keyword for variable declaration in JavaScript. It highlights the issues related to function-scoping, variable hoisting, and redeclaration without warnings that come with 'var'...
scrappedscript.com4 min read
Florian Fuchs
Fullstack Engineer @ Hashnode
Nice article