About Lesson
let and const are two ways of declaring variables in JavaScript, introduced in ECMAScript 6 (also known as ES6 or ES2015).
let is used to declare a variable that is limited to the block scope in which it is defined. This means that the variable is only accessible within the block of code in which it is defined, and any nested blocks within it.
Join the conversation