Skip to content

Objects and Object Constructors: setPrototypeOf() not explained properly #28633

Open
@mahmoudmerghani

Description

@mahmoudmerghani

Checks

Describe your suggestion

The lesson doesn't explain setPrototypeOf() thoroughly, it doesn't make it clear that Object.setPrototypeOf(Player.prototype, Person.prototype); is like Player.prototype.__proto__ = Person.prototype
and the explanation of why Player.prototype = Person.prototype doesn't work is not clear

Path

Node / JS

Lesson Url

https://www.theodinproject.com/lessons/node-path-javascript-objects-and-object-constructors

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

Metadata

Metadata

Assignees

Labels

Content: JavaScriptInvolves the JavaScript courseStatus: Help WantedThis issue can be assigned to other contributors

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions