thepracticaldev.com thepracticaldev.com

Enough JavaScript to get you Started : #16 var vs let vs const

Before we start 👉 Before we start this article i would like to clarify some technical jargons for you 👉 Scope : Scope is nothing but a code block where the variable is accessible for usage 👉 Global Scope : Global Scope means variable is declared globally (not in some condition or function) hence it can be used any where throughout the execution of program 👉 Local/ Functional Scope : this simply means that when we...