Difference between {} as an object and {} as empty block scope in JS

let a=10;
{} //empty block scope
//lets say there is an object 
let b ={};

so, how does js differentiate between the two ?

console.log({}=={}) ( as an example )

is there a way where we can use {} as empty block and {} as an object distinguishably?