Using Jasmine with JavaScript / ES2015

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

Featured

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.

Template Literals in ES2015

Another great and super useful addition to the JavaScript language are template literals (or template strings). Essentially, they allow you to use expressions inside string literals which have quite a few interesting use-cases.

Classes in ECMAScript 2015

Featured

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.

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

Featured

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.