Relative Content

Tag Archive for javascriptobject

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? javascript object New contributor Rizwan Saifi is […]