Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.log() with strict equivalence #48

Open
briancodes opened this issue Nov 25, 2018 · 0 comments
Open

console.log() with strict equivalence #48

briancodes opened this issue Nov 25, 2018 · 0 comments

Comments

@briancodes
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant