Building the Javascript .map() function from scratch

Probably one of the most used and most powerful functions ( .reduce() might be the most important) in the Javascript language is the .map() function (And let’s not forget it’s somewhat closely related cousin .forEach()). Both of these functions allow us to...

Demystifying the new keyword in Javascript

Javascript’s ‘new’ keyword goes hand-in-hand with the object oriented programming paradigm in which the code written aims to mimic things and actions in the real world. A dog can run and jump, a user can login and logout. In the world of Javascript,...