Category Archives: javascript

Difference between var and let variable declaration is the “scope”

Main difference between var and let variable declaration is the “scope”. var is scoped to the nearest function block let is scoped to the nearest enclosing block, this scope can be smaller than a function block Both types will have … Continue reading

Posted in javascript | Tagged , | Leave a comment