console.log() with strict equivalence
briancodes opened this issue · comments
Some of the examples log out using strict equivalence, which could be misleading, as they general log as false
. Is there a reason the examples use this format?
// Object Initializer Shorthand
'use strict';
function getPoint() {
var x = 1;
var y = 10;
return { x: x, y: y };
}
console.log(getPoint() === {
x: 1,
y: 10
}); // false