Pass by Value vs Pass by Reference

Passing arguments to functions is a fundamental aspect of programming. How these arguments are passed, and whether they’re treated as references or values, can have a significant impact on how your code behaves. In this article, we’ll delve into how passing arguments in PHP and JavaScript work. PHP Default Behavior: Pass by Value By default, … Read more

JavaScript OOP Using Constructor Functions

JavaScript OOP with Constructor Functions

Object Oriented Programming can be implemented in JavaScript in three ways Constructor Function ES6 Class Object.create() In this article, I’ll go over the first way, which is using constructor functions. Using constructor functions is the oldest and main method of doing OOP in JavaScript. Our Sample Object Imagine our objective is to be able to … Read more

JavaScript this Keyword

this keyword

The “this” keyword in JavaScript can be a source of confusion for developers. In this article, we’ll try to understand this keyword in different contexts.

How DOM Events Work?

DOM Events

In this Article we’ll go over the DOM events, event listeners, event propagation and other useful info about the events.