Bob Myers
Bob Myers
Aug 31, 2018 · 1 min read

An object literal will have the __proto__ property referencing to the window object in the prototype chain as soon as it is created.

Whatever would you make you think that? It’s completely wrong. There is not even a window object in all execution environments, and even in ones that do have one, prototypes for object literal is exactly the same as the prototype for Object.create()` or Object.create({}).

This post is a documentation of my understanding as to how delete operator works on objects created using Object.create() vs objects created using Object literal.

I’m confused as to why you would post an article with “your understanding”. There is only things which are correct, and things are incorrect.

Disclaimer — by no means do I claim the following to be the only source of truth.

The point you are talking about is not something about which opinions might vary. It’s either objectively correct or incorrect.

    Bob Myers

    Written by

    Bob Myers

    Technologist/author/translator mainly writing about computing

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade