var has no block scope❗️

JSvariablevar ⟩ has no block scope

var in block doesn't have block scope, cannot shadow let variable in the outer enclosing scope.

Last updated