๐——๐—ฎ๐˜† ๐Ÿฎ๐Ÿฑ ๐—ผ๐—ณ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด ๐— ๐—˜๐—ฅ๐—ก ๐—ฆ๐˜๐—ฎ๐—ฐ๐—ธ

I spent day 25 studying Object-Oriented Programming (OOP) in JavaScript.

I focused on how objects share properties through Prototypes. This knowledge helps you structure better code.

One key concept I learned is the this keyword.

The this keyword refers to the specific object inside a method. It lets functions access properties within the same object.

Example:

const student = { name: "Ali Hamza", marks: 95, printMarks: function() { console.log("Marks =", this.marks); } };

In this example, this.marks points to the marks property of the student object.

Understanding these fundamentals makes you a better developer.

Source: https://dev.to/ali_hamza_589ec7b3eb6688d/day-25-of-learning-mern-stack-2npf