Here is an example code
let x = 12;
alert(x); //alert's 12
alert(x); //x is undefined here
“let” keyword limits the variables accessibility upto a block, statement or expression.