if (true) {
    var varVariable = "var";
    let letVariable = "let";
}

console.log(varVariable); // var
console.log(letVariable); // ReferenceError: letVariable is not defined