let m = {name : "mastan"};
let n = {name : "mastan"};
m == n
// this gives false because m and n are 2 different objects
JSON.stringify(m) == JSON.stringify(n)
// this gives true because stringify converted object into a string
Meanwhile I did this and it returned true ?
'[object Object]' == {name : "mastan"}
// and
m.toString() == n
How?