September 24, 2017

javascript is very easy language to learn but it’s also very difficult to master it. So in this tutorial we will learn about the scope of┬ávariable in javascript.

SCOPE OF VARIABLE

  1. Global Scope
  2. Function Level Scope (var)
  3. Block Level Scope (let,const)