Scope of var and let keyword
*var keyword uses something called functional scope where as let keyword uses block scope.
Let's see an example
function test(){
console.log(i) // undefined
var i = 3;
console.log(i) // 3
}
Due to hoisting behaviour of var keyword, the first ...
blog.roshith.com3 min read