var a = {};
if (a === {}) {
  var a = 123;
}
console.log(a);

**Ответ

var a = {};
if (a === {}) {
  var a = 123;
}
console.log(a); // {}

Назад