Block scope Vs Global scope var, let, const !!!
const a = 1;
let b = 2;
var c = 3;
if(true){
const a = 10
let b = 20
var c = 30
console.log('Inside Block value of a = ' ,a )
console.log('Inside Block value of b = ' ,b )
console.log('Inside block value of c = ' ,c )
}
console.log('...
kheersagar.hashnode.dev2 min read