Category: JavaScript

  • Web APIs

    Web APIs

    Javascript is a single threaded language that has to do things in the order they come in – but also it can do things asynchronously. How? That’s where Web APIs come in. These APIs are not part of the JavaScript language, but they are provided by the Javascript runtime environment. One of these environments you’re using right now…

  • The Call Stack

    The Call Stack

    JavaScript uses a data structure, which we call the call stack to keep track of every function call that’s made. Every function gets added to the call stack and it’s addressed in the order of last in first out, or LIFO. The last function to be executed gets priority to finish execution before falling back…

  • The JavaScript Event Loop

    The JavaScript Event Loop

    Javascript is a single minded language. Or, more accurately, a single-threaded one. However you probably can’t spend much time on the internet without running into our friend JS — who seems to be doing many, many things at a time. This is because it can do things asynchronously. To understand what it does and how…