The Power Of Closure

I feel like closure is one of the most difficult things to understand in Javascript. Let’s try to break this down into a more digestible concept. In JS, functions are objects and can be declared anywhere. If I declare a function within another function, the inner function has access to the local variable of the… Continue reading The Power Of Closure

Published
Categorized as Javascript

A Prototype Chain By Any Other Name Would Smell As Sweet…

Javascript, I love it when you talk prototypes and chains at me… But JS, I know you’re lying to me. You really don’t have classes like in other OOP (object oriented programming) languages. When we code, we’re really only concerned about two things: storing data in memory and applying functionality to this data. Object Oriented… Continue reading A Prototype Chain By Any Other Name Would Smell As Sweet…

Published
Categorized as Javascript

Oh JS Async, How I Love You

Concurrency happens when multiple computer computations are happening simultaneously at the same time. Javascript runs via a call stack that is a parsed sequentially line by line (single threaded synchronous). If delays occur in the code execution whether intentional or non-intentional, how do you prevent them from blocking your code execution? Even though the call… Continue reading Oh JS Async, How I Love You