Curriculum
Course: JavaScript Basic
Login

Curriculum

JavaScript Basic

JSHome

0/216
Text lesson

What is Good?

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.

What is Not Good?

Variables declared with var do not require explicit declaration.

Moreover, var variables are hoisted and bind to “this”.

Browser Support

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:

IMG_3996