You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: