In this article, we will learn about the main differences between var, let and const in JavaScript. var: A var statement has two scopes, global scope and function scope. var declarations are generally hoisted. Global scope of var: If we define a var ...
venkybellara.io3 min read
No responses yet.