Michael Karén's Blog

HomeBadges

Getting Started with Modern JavaScript — Spread vs Rest

Sep 22, 20207 min read

JavaScript version ES6 (ES2015) brought us a couple of useful features for arrays represented by three dots (…), the rest parameter, and the spread operator. And ES2018 introduced the same syntax for objects. It can be confusing to have one syntax re...

Getting Started with Modern JavaScript — Template Literals

Sep 14, 20203 min read

Introduced in 2015 with ECMAScript6, template literals let us dynamically construct strings of text and embedded expressions, even multi-line strings of text, in a more elegant way than concatenation. The syntax is not much different from the old one...

Getting Started with Modern JavaScript — Proxy

Sep 8, 20205 min read

JavaScript proxies were introduced in 2015 with ECMAScript 6. They allow us to intercept and override operations such as object property lookup and assignment. A Proxy object wraps another object and acts as a middleman. Syntax A proxy is created us...

Getting Started with Modern JavaScript — Destructuring

Sep 3, 20206 min read

The two most used data structures in JavaScript are Object and Array. The destructuring assignment introduced in ECMAScript 2015 is a shorthand syntax that allows us to extract array values or object properties into variables. In this article, we go ...

Getting Started with Modern JavaScript — Arrow Functions

Sep 2, 20205 min read

One of the most popular new features in ECMAScript 2015 is arrow functions. Is it because of the new cleaner syntax or the sharing of this with the parent scope? Maybe both. Let’s look into them in more detail. Syntax The first factor that influenced...

Getting Started with Modern JavaScript — Classes

Aug 27, 20209 min read

We often need to create many objects of the same kind, like users or cars. In object-oriented languages, a class is often used for this purpose. JavaScript, being a prototype-based language, has something called constructor functions. // ES5 construc...

© 2021 Michael Karén's Blog

PrivacyTerms
Proudly part of