Prototype inheritance works in java scrip. When you access a method or a property on an object, it will first check if that object has that value. And if it does not have that value, it doesn't immediately say, a, it doesn’t exist. It will go up the chain of prototypes to look for it. So that's how ray prototype work. Yes, that's greata classical inheritance. Classical inheritance is, let's see, objects and object instances inherit their properties and functions from a class which acts as a blue print for the object. Object stances are typically created using a constructor and the new key word "ray" Sounds like the exact same thing to

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode