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?
New contributor
Rizwan Saifi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.