Skip to main content
← All posts

Posts tagged "JavaScript"

31 posts

What Is Isomorphic JavaScript?

This article discusses isomorphic (universal) JavaScript and how it can be applied to a PWA without any frontend frameworks, relying only on vanilla JavaScript.

🍬Syntactic sugar, diabetes alert🚨

Syntactic sugar is everywhere in JavaScript. Most will say it's JUST syntactic sugar - a tiny bit of candy that makes your coding life sweeter. Well, is it? A little bit of sugar here, a bit there… and before we know it, we already need an insulin shot. 

ES6 — Set vs Array — What and when?

Some can argue that Set has more advantages compared to Array. Others may wonder why there is a need for Set now (we have been doing pretty well without one until now). What exactly differs these two and when to use one over the other?

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.

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.

Declaring variables in ECMAScript 2015

The way you have defined variables in JavaScript for the past decade has always been the same – by using the `var` keyword. In the latest version of JavaScript (ES2015) you can declare variables using let and const.'

Functions in JavaScript

The latest version of JavaScript (ES2015) allows us to write functions in a different way by using the arrow function syntax. This not only allows for terser function declarations but also has additional benefits.