Bloqueo alcanzado en JS

The area of the code which is within {curley brackets} is called a block
if (true) {  ///block start 
  var x = 2;
  let y = 2;
}  // block end
greatHritik