codepath / codepath/nodejs_guides

JavaScript: Inheritance

Open
#14 0 comments 0 reactions 1 assignee Claimed by @pixelknitter View on GitHub
help wanted
Dominant language
No language data
Stars
74
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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

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.