Jul 11, 2024 · 5 min read · Prototype chaining is a fundamental concept in JavaScript that enables inheritance and the sharing of properties and methods between objects. It's essential for creating flexible and reusable code. In this blog, we'll dive deep into prototype chainin...
Join discussion
Jun 5, 2024 · 1 min read · In this article we would see how we can implement inheritance through objects Lets create a parent prototype object : const staffProto = { init(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }, empDetails()...
Join discussion
Aug 26, 2023 · 6 min read · Want command over JS, gain knowledge of Objects We all know that in JavaScript almost everything is an object. These Objects can be considered as a fundamental part of the language. They are versatile and flexible, making them a pivotal element in m...
Join discussion
Jul 15, 2023 · 3 min read · As a developer, my journey of exploring the language's features and concepts has been both enlightening and challenging. One particular aspect that fascinated me was prototypes, which play a crucial role in inheritance and code reuse. I will share my...
Join discussionJun 18, 2023 · 2 min read · JavaScript is a widely used programming language for web development, and one of its powerful features is the ability to extend built-in objects using prototypes. Prototypes allow you to add custom methods and properties to existing JavaScript object...
Join discussion
Feb 14, 2023 · 8 min read · Introduction JavaScript is an object-based language, meaning that everything in JavaScript is an object. To understand how Prototype works in JavaScript, we need to understand what an object is. An object is a collection of properties, and a property...
Join discussion
Feb 2, 2023 · 6 min read · Let's understand Prototype by taking a goal to achieve in mind. Suppose you want to build something like React, ViewerJS, String Library, or a classic Array Library or you want to do some DOM Manipulation. I'm talking about big steps here, like build...
Join discussionDec 5, 2022 · 13 min read · What is Object-Oriented programming (OOP)? Object-oriented programming (OOP) is a programming paradigm (Style of code, “how” we write and organize code) based on the concept of objects. We use objects to model (describe) the real-world (your phone)...
Join discussion
Sep 13, 2022 · 3 min read · What is Prototypes In JavaScript ?🥱 And What is Prototype Chain Prototype is a Machanism in JavaScript Which help's Object's to inherit the Features. Prototype itsSelf an Object So This prototype will have it's Own Prototype, Making What's Called ...
Join discussion