Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
One line of code creates a lot of confusing #2024
Conversation
"// obj.toString === obj.__proto__.toString == Object.prototype.toString" It is look like JS code but it gives different result from what we want to get. There is different kind of equality operator ant these give more confusing what is the purpose of these? It can be better to separate this line into 2 line of code to make it sensible and readable. Subject and code is already hard but there is no need to make readers ask unnecessary questions.
edc6126
into
javascript-tutorial:master
// obj.toString === obj.__proto__.toString == Object.prototype.toStringIt is look like JS code but it gives different result from what we want to get.
There is different kind of equality operator and these give more confusing about what is the purpose of these?
Purpose of the line of code is showing correctness of these words.
So, it can be better to separate this line into 2 line of code to make it sensible and readable.
Subject and code is already hard but there is no need to make readers ask unnecessary questions.