What is __proto__ in JavaScript?

If you’ve used JavaScript, chances are you’ve come across it

Chan Jing Hong
JavaScript in Plain English
3 min readJan 5, 2021

--

If you’ve used JavaScript, chances are you’ve come across it something like this:

I’ve created an empty object, why is it that console.log shows a mysterious property __proto__?

Not a mystery

So it turns out, an empty object is more than the 2 curly braces that you see on the screen. Every single javascript object created, automatically comes with a __proto__ property, which is from the…

--

--

What lens do you use to view the world? Founder @ https://groftware.tech; 3x  WWDC Scholar; I enjoy ⌚️,🤿,🛹,🎸,✍🏻