life is too short for a diary



Posts Tagged: javascript

Understanding Object References in JavaScript

When working with JavaScript, it's important to understand that objects are reference types. This means that when you assign an object to a new variable, you're not creating a new copy of the object—instead, both variables reference the same object in memory. This can lead to some unexpected behavior if you're not careful...

Continue reading → javascript



Getting started with Javascript Promises and Async Await

Getting started with Javascript Promises and Async Await..

Continue reading → javascript



Why Math.max() is Less Than Math.min() in JavaScript

JavaScript is full of surprises and unexpected behaviors that often leave developers scratching their heads. One of those strange behaviors is the fact that Math.max() < Math.min() is true in JavaScript. In this blog, we'll delve into the underlying reasons for this seemingly paradoxical result...

Continue reading → javascript