1 min read

Let and Const

let and const are two new keywords in ES6 for declaring variables.

let

let is the new var. It allows you to declare variables that are limited in scope to the block, statement, or expression in which they are used.

const

const is a new keyword for declaring variables that are read-only. They are also block-scoped.