if(true) {
let a = b = 200;
}
console.log( typeof a ); // undefined
console.log( typeof b ); // number
var b;
if(true) {
let a = b = 200;
}
console.log( typeof a ); // undefined
console.log( typeof b ); // number
if(true) {
let b;
let a = b = 200;
}
console.log( typeof a ); // undefined
console.log( typeof b ); // undefined