๐๐ฎ๐ ๐ฎ๐ฑ ๐ผ๐ณ ๐๐ฒ๐ฎ๐ฟ๐ป๐ถ๐ป๐ด ๐ ๐๐ฅ๐ก ๐ฆ๐๐ฎ๐ฐ๐ธ
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