curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Objects and Object Constructors: Explain Object.create

Open harristom opened this issue 1 year ago • 7 comments

Checks

Describe your suggestion

The Knowledge Check says you should be able to explain what Object.create does but it is not mentioned anywhere in the preceding material

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

harristom avatar Jan 16 '24 15:01 harristom

I'm happy to add something, if you have any suggestions :)

Churtified avatar Jan 16 '24 23:01 Churtified

@TheOdinProject/javascript Can someone take a look at this please. There is a resource on Object.create but it only seems to be linked in the knowledge check section.

CouchofTomato avatar Jan 17 '24 19:01 CouchofTomato

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Feb 17 '24 01:02 github-actions[bot]

It's mentioned in the Dmitri Pavlutin’s article on the this keyword assignment item, albeit very briefly:

Object.create() creates a new object myDog and sets its prototype from the first argument. myDog object inherits sayName method.

which also links to the MDN docs for Object.create. That said, considering it's such a brief mention, and we have some an additional resource item that links to some videos for it, we could remove the lesson overview item and knowledge check item that mentions Object.create. It feels more like a "there's also this other concept..." kind of topic rather than a "you must understand this as part of the lesson intent".

@Churtified would you be interested in making such an update?

thatblindgeye avatar Feb 17 '24 14:02 thatblindgeye

It's mentioned in the Dmitri Pavlutin’s article on the this keyword assignment item, albeit very briefly:

Object.create() creates a new object myDog and sets its prototype from the first argument. myDog object inherits sayName method.

which also links to the MDN docs for Object.create. That said, considering it's such a brief mention, and we have some an additional resource item that links to some videos for it, we could remove the lesson overview item and knowledge check item that mentions Object.create. It feels more like a "there's also this other concept..." kind of topic rather than a "you must understand this as part of the lesson intent".

@Churtified would you be interested in making such an update?

Yes I can do it :)

Churtified avatar Feb 18 '24 00:02 Churtified

@Churtified you're assigned!

thatblindgeye avatar Feb 22 '24 14:02 thatblindgeye

It's mentioned in the Dmitri Pavlutin’s article on the this keyword assignment item, albeit very briefly:

Object.create() creates a new object myDog and sets its prototype from the first argument. myDog object inherits sayName method.

which also links to the MDN docs for Object.create. That said, considering it's such a brief mention, and we have some an additional resource item that links to some videos for it, we could remove the lesson overview item and knowledge check item that mentions Object.create. It feels more like a "there's also this other concept..." kind of topic rather than a "you must understand this as part of the lesson intent".

@Churtified would you be interested in making such an update?

Thanks for removing these references! Additional question - when I searched the topic on Discord, it seemed like Object.create was used and previously recommended in various articles. Some of that discussion was within the last 2 years so made it tough for me to induce that Object.create is now outdated. So, could it be worth mentioning this and providing a brief context for "Object.create" somewhere in the TOP material (even if just as an aside), for new developers who come across it in old code or discussions?

khhuang7 avatar Feb 26 '24 03:02 khhuang7