Unlike the var keyword, which declares a variable globally or locally to an entire function regardless of block scope, the let keyword allows you to declare variables that are limited to the scope of the block statement or expression on which it is used. Another distinction between var and let is that the latter is only initialized to a value when it is evaluated by a parser.