__proto__ vs prototype

Mattias Petter Johansson
Fun Fun Function
Published in
1 min readOct 3, 2016

We explore the __proto__ property on JavaScript Objects, and how it relates to the normal prototype. Basically, the .__proto__ property points to the object that the current object actually will use when doing lookups on the prototype chain, while “.prototype” only exists on functions, in case you want to use those objects as constructors
passed to the new keyword.

Full video:

Stuff mentioned in the video:

• Full series: Object creation in JavaScript
https://goo.gl/pCt2tX

• Music in the video: Peacock by 7 minutes dead
https://www.youtube.com/watch?v=Mi-xOhMqrkg

# I’m also active on:
• Twitter https://twitter.com/mpjme
• Medium https://medium.com/@mpjme
• Quora https://www.quora.com/profile/Mattias-Petter-Johansson

--

--

Fun Fun Function
Fun Fun Function

Published in Fun Fun Function

A fun, personal and down-to-earth show about programming

Mattias Petter Johansson
Mattias Petter Johansson

Written by Mattias Petter Johansson

Creator of Fun Fun Function, a YouTube show about programming.

No responses yet