JS Let
Use let when a binding must change. Its name belongs to the block where it was declared.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
let waiting = 2;
waiting += 1;
console.log(waiting);
What happens
The queue grows from 2 to 3.