Edit It: How Does Var's TDZ Differ from Let and Const Variables?
This code shows how var's temporal dead zone differs from let and const variables.
See it on StackBlitzThis code shows how var's temporal dead zone differs from let and const variables.
See it on StackBlitz