addyosmani / addyosmani/es6-equivalents-in-es5

console.log() with strict equivalence

Open
#48 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
2.5k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.