RSSAmplifier

Simon Morgan · May 30, 2017

JavaScript Prototypes for the Confused

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Objects can have a prototype and a prototype is just another object. We can get an object’s prototype using the Object.getPrototypeOf method. Object. getPrototypeOf ({}); // → {} Yes, JavaScript really loves objects. It’s objects all the way down. Actually that’s not completely true: Object. getPrototypeOf (Object. getPrototypeOf ({})); // → null The first call to…

Read on /blog/javascript-prototypes/

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.