The spread operator works on any iterable. It takes every single item from an iterable and applies it to the containing array / object. Basically,…

Read more

ES6 introduces two new static functions on an Array: Array.from() and Array.of(). Array.from() takes something that is arrayish and converts it to an array. Especially…

Read more

The for..of loop loops over a set of iterable values produced by an iterator. It does not work on objects since it is not an…

Read more

Destructuring allows us to extract data from objects, arrays, maps, and sets into their own variables. You do not have to assign all the values…

Read more

There are several new string methods available in ES6. StartsWith is a method that returns a boolean value based on whether the argument passed starts…

Read more

Template strings introduce an additional way to write a string. See the Pen d959c5f694f72415d1a9459f597ebd72 by Deano (@deangilewicz) on CodePen. It also allows for interpolation. See…

Read more

Functions can take arguments such as the following: See the Pen thecodelog.com – ES6 Default Arguments 1 by Deano (@deangilewicz) on CodePen. If we want…

Read more

Arrow functions are anonymous functions that make use of a “fat arrow”. They are always anonymous (not named functions) but can be assigned to a…

Read more

A variable is “a named space in memory” that stores values. Basically, a variable acts as a container for values in a program. Declaring: A…

Read more

Operator precedence determines the order in which operators are evaluated. Operators with higher precedence are evaluated first. In the code below, the multiplication operator *…

Read more