DG9222basic-js-dg.hashnode.dev·Nov 20, 2024ES6 ClassBefore we start learn ES6 why we need ES6 class in Javascript. So let’s find it: Before ES6, JavaScript had no concept of classes. It’s use functions, for example: function Person(name) { this.name = name; } Person.prototype.getName = function (...Odoo OwlJavaScript
Shikhar Shuklashikhar99.hashnode.dev·Feb 28, 2024Mastering Getter and Setter in JavaScriptJavaScript provides powerful mechanisms for controlling access to object properties through getters and setters. These features allow developers to enforce encapsulation, validate data, and execute custom behavior when accessing or modifying object p...148 readsproperties in javascript
Akash Deep Chitranshcodechitra.hashnode.dev·Feb 2, 2023Object-Oriented Programming In JavaScript - 2ES6 Classes Classes in JavaScript do not work as it works in languages like C++ and Java. Classes in JavaScript also implement prototypal inheritance as we did with the constructor function. It is just a "Syntactic Sugar" which makes more sense to pr...42 readsJavaScript
Akash Deep Chitranshcodechitra.hashnode.dev·Jan 30, 2023Object-Oriented Programming In JavaScript - 1What is Object Oriented Programming(OOP) Object-oriented programming is a programming paradigm(i.e style of writing code) based on the concept of objects. OOP was developed to organize code, to make it more flexible and easier to maintain(avoid "Sphe...47 readsObject Oriented Programming