JavascriptTutorials

JavaScript Promises

Promises in JavaScript are used to retrieve a value from a task that is performed asynchronously, for example making an API call to an endpoint, and expecting that a value will be returned. The key word is ‘expecting’, since we are waiting for a response, so that we can use the data returned to perform some other tasks. Lets take a quick look at the structure of a promise…

Read more
JavascriptTutorials

JavaScript Basics

A closure is when an inner function is closed over (‘swallowed up’) by an outer function thereby allowing the inner function to gain access to the outer function’s variables and methods…

Read more