Skip to content

Tag Archives: javascript-oop

In JavaScript, there are two ways to create a promise: using the Promise.resolve method or using the new Promise constructor. While both ways achieve the… Read More
What is Polymorphism? Polymorphism is one of the core concepts of object-oriented programming language. Polymorphism means the same function with different signatures is called many… Read More
Let’s first understand what closures are in Javascript. Closures: A function along with a reference to the outer environment together forms a closure. In other… Read More
Sub-class: A subclass is a class that is derived from the properties and methods of some other class known as the Parent class for that… Read More
CoffeeScript is an object-oriented programming language. Classes make large code readable, and easy to maintainable. Objects are instances of a class, a real-world entity that… Read More
Here, we will discuss inheriting a constructor function in JavaScript. Constructor functions define the prototype of the properties an object will contain. Using the constructor… Read More
A Class in programming is the blueprint or template for creating an object, and each object represents a distinguishable real-world entity. In other words, also… Read More
Classes: These are almost similar to functions, except they use a class keyword instead of a function keyword. Another important difference between functions and classes… Read More
In this article, we learn how to call the constructor of a parent class. Before the beginning of this article, we should have a basic… Read More
In this article, we will understand exactly what the new keyword is, and why we use the new keyword, and how we can use the… Read More
JavaScript Composition: Composition means to Compose. Everything in JavaScript is treated as an object even functions in JavaScript are treated as a high-class object. Such… Read More
Extend: The JavaScript / jQuery extend method copies all properties from the source to the destination object. The primary use of the extend method is… Read More
Let us try to understand, what is class. A class in JavaScript is a type of function, which can be initialized through both function keywords… Read More
Object: An object is the collection of related data or functionality in the form of key. These functionalities usually consist of several functions and variables.… Read More
Objects, in JavaScript, are the most important data type and form the building blocks for modern JavaScript. These objects are quite different from JavaScript’s primitive… Read More

Start Your Coding Journey Now!