Comments (13)
Comment written by xorcus on 06/08/2016 12:58:17
It seems you and I share a common interest in JavaScript details :-)
Here are some slides of mine (in English) about prototypal inheritance. The conference video is not in English unfortunately, but you may still find the slides interesting:
http://www.slideshare.net/M...
from dmitripavlutin.com-comments.
Comment written by Dmitri Pavlutin on 06/08/2016 13:38:10
Yep, we share both an interest for details in JavaScript.
Thanks for the slide link, it is very interesting!
from dmitripavlutin.com-comments.
Comment written by analognico on 06/27/2016 23:29:14
Thanks for this awesome article! I just started to use ES6 classes and found part 3 especially helpful.
from dmitripavlutin.com-comments.
Comment written by Dmitri Pavlutin on 08/06/2016 17:13:04
Sorry for the late reply. Yes, the constructor property can be an alternative.
But ES2015 provides a very useful special symbol @@hasInstance
, which allows to customize how instanceof
works.
Please see [this chapter] for more details.
from dmitripavlutin.com-comments.
Comment written by analognico on 08/08/2016 00:55:36
Awesome article! I was always wondering what the new "Symbol" was all about. Your article made it perfectly clear to me!
from dmitripavlutin.com-comments.
Comment written by Dmitri Pavlutin on 08/08/2016 05:43:05
Thanks @analognico:disqus! I find Symbols pretty interesting too, especially to hack into JavaScript 😇.
from dmitripavlutin.com-comments.
Comment written by Selva Kumar on 05/09/2017 21:28:55
Thanks man :)
from dmitripavlutin.com-comments.
Comment written by James on 06/30/2017 14:29:58
`simpleObject.prototype` on Chrome 58.0.3029.110 now returns `undefined`.
from dmitripavlutin.com-comments.
In first example:
var obj = {};
str.constructor === Object // => true
it should be:
var obj = {};
obj.constructor === Object // => true
from dmitripavlutin.com-comments.
In first example:
var obj = {}; str.constructor === Object // => true
it should be:
var obj = {}; obj.constructor === Object // => true
Wow, 5 years old post and someone is reading it! :) Will fix.
from dmitripavlutin.com-comments.
I can't Thank You enough for the articles, they have helped me immensely
from dmitripavlutin.com-comments.
@Azzyxec You're welcome!
from dmitripavlutin.com-comments.
In the 2. must be
correctTigerClone instanceof Cat // => true
instead of
correctTigerClone instanceof Cat // => false
from dmitripavlutin.com-comments.
Related Issues (20)
- react-usememo-hook/ HOT 12
- javascript-json-modules/ HOT 7
- javascript-import-meta/ HOT 3
- javascript-array-group/ HOT 16
- javascript-array-flatmap/ HOT 23
- interface-vs-implementation/ HOT 11
- vue-next-tick/ HOT 4
- props-destructure-vue-composition/ HOT 7
- ref-reactive-differences-vue/ HOT 5
- environment-variables-javascript/ HOT 3
- ref-in-vue/ HOT 1
- typescript-function-type/ HOT 5
- vue-v-model-form-inputs/ HOT 2
- react-forwardref/ HOT 4
- javascript-enum/ HOT 19
- react-comments/ HOT 8
- typescript-record/ HOT 10
- screen-window-page-sizes/ HOT 3
- javascript-pure-function/ HOT 1
- Great article
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmitripavlutin.com-comments.