Tagged "JavaScript"

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.

Using Decorators in JavaScript

This article discusses decorators used in JavaScript.

Optional Chaining Operator in JavaScript

The Optional Chaining Operator in JavaScript allows developers to safely check for the existence of deep nested properties in objects.

The future of JavaScript (ECMAScript 2019 and beyond)

In this article, we'll go through some of the features that are currently being considered to be added to 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?

An Overview of ES2015 (ES6) Modules

This article focuses on the current state of Modules in the JavaScript ecosystem

Symbol, Iterator and Generator in JavaScript

In this article, we'll take a look at Symbols, Iterators and Generators in JavaScript (ES2015) and we'll also implement an interesting example of using all three technologies.

Why shouldn't JSONP​ be used?

JSONP is could be considered to be a useful way to avoid CORS errors however it has more cons than pros - this article discusses the most important factors.

Blockchain implementation using JavaScript

In this article, we are implementing a blockchain solution using JavaScript and while implementing, getting familiar with this emerging technology.

Hiding / removing elements in DOM using JavaScript

In this article, we'll take a look at how to hide and remove elements in DOM by using JavaScript, and we'll learn a few techniques and explain the differences between them.

Using Jasmine with JavaScript

Testing is an important aspect of development and in this article we'll take a look at how to add Jasmine unit tests to a JavaScript (ES6 / ES2015) code.

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.

Arrays and Objects in ES2015

A range of new capabilities have been added to JavaScript with ES2015 that helps us work with arrays and objects.

Rest Parameters, Spread Operator and Default parameters for Functions

Rest Parameters, Spread Operator and default parameters for Functions are all great additions for JavaScript ES2015.

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.