codepath / codepath/nodejs_guides

JavaScript: Inheritance

Aperta
#14 0 commenti 0 reazioni 1 assegnatario Rivendicata da @pixelknitter Vedi su GitHub
help wanted
Lingua principale
Nessun dato sulla lingua
Stelle
74
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

MDN has superior material on this [[1](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model),[2](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_Object-Oriented_JavaScript)]. There's not much need to rehash it, but it might be worthwhile to provide some focused & simple examples of creating a class with inheritance, constructor, static and instance methods and properties and an equivalent prototypal example with Object.create.

Also see Babel's [class example](https://babeljs.io/docs/learn-es6/#classes)

**This is a bit of an overloaded tricky subject. Let's try and avoid the controversy and provide simple recommendations and additional information for people to decide for themselves.**
- [Common Inheritance Misconceptions](https://medium.com/javascript-scene/common-misconceptions-about-inheritance-in-javascript-d5d9bab29b0a)

**What success looks like: Succinctness and clarity. Less is more.**
Reference Wikis: [Authentication & Authorization](https://github.com/codepath/nodejs_guides/wiki/Authorization-&-Authentication), [Setup](https://github.com/codepath/nodejs_guides/wiki/Setup)

Open separate issues for required links to community sources if you're having trouble finding any.

_Please assign to yourself before working on this._
/cc @NinjaSudo @philster @azoff @DiyahM

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.