The “let” and “const” keywords in JavaScript exhibit block scope, preventing redeclaration.
Usage of “let” and “const” mandates declaration before usage.
Furthermore, “let” and “const” do not bind to “this” and are not subject to hoisting.
Variables declared with var do not require explicit declaration.
Moreover, var variables are hoisted and bind to “this”.
Full support for the let and const keywords is not available in Internet Explorer 11 or earlier versions.
The table below specifies the earliest browser versions with comprehensive support: