Skip to main content
Articles & Insights

Blog

Technical articles on AI integration, web development, and emerging technologies.

Promises in JavaScript

Promises in JavaScript are a powerful concept that allow us to write asynchronous code in a synchronous fashion with better error handling than callbacks.

Functions in TypeScript

Functions in TypeScript work in exactly the same way as functions in ES2015, allowing us to use rest and default params and fat arrow functions in combination with data types.

Promise anti-pattern

JavaScript promises have an important anti-pattern when it comes to using .then() with an error handler versus when using .catch() for handling errors.

Classes in TypeScript

Classes in TypeScript really extend JavaScript's (ES2015) class functionality and add their support for types and member access.

Classes in ECMAScript 2015

If you have worked with JavaScript before you may have heard the expression 'prototypal inheritance' or that JavaScript is a 'prototype' based language. As of ES2015 we can use the class keyword which adds syntactic sugar over the prototypes.