let

noun

say it: “LET” /lɛt/

A JavaScript keyword for a variable that can be given a new value, visible only in its block.

What is let in JavaScript?

let — A keyword that declares a block-scoped variable that can be reassigned.

let score = 10;
score = score + 5;

In a sentence

  • “The counter uses let because it goes up on each click.”

Level: Novice · More JavaScript terms at this level

Updated