en.javascript.info/1-js/08-prototypes/03-native-prototypes
Mustafa Kemal Tuna 8f3831be1c
One line of code creates a lot of confusing
"// 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.
2020-07-23 13:51:13 +03:00
..
1-defer-to-prototype refactor classes, add private, minor fixes 2019-03-05 18:44:28 +03:00
2-defer-to-prototype-extended closes #1387 2019-10-02 10:42:54 +03:00
article.md One line of code creates a lot of confusing 2020-07-23 13:51:13 +03:00
console_dir_array.png refactor classes, add private, minor fixes 2019-03-05 18:44:28 +03:00
function-prototype-constructor.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
native-prototypes-array-tostring.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
native-prototypes-classes.svg re-import images (Sketch update) 2019-11-30 08:51:52 +03:00
object-prototype-1.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
object-prototype-null.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
object-prototype.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
proto-constructor-animal-rabbit.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00
rabbit-prototype-constructor.svg re-import images from Sketch (no changes) 2019-10-10 17:08:16 +03:00