let
Also known as let declaration
A JavaScript declaration for a block-scoped variable whose value can be reassigned.
In the real world
let count = 0; count += 1; updates a variable that belongs to its surrounding block.
Also known as let declaration
A JavaScript declaration for a block-scoped variable whose value can be reassigned.
let count = 0; count += 1; updates a variable that belongs to its surrounding block.