JavaScript es6

            let x = 42;
if (true) {
  let x = 1337;
}
console.log(x);
          
Cute Chipmunk