Gabriele Ferro Home

ECMAScript 6 – Part 2

Day27: 16 August 2020

**Today’s Progress:**

Completed ES6 section of freeCodeCamp JavaScript Algorithms and Data Structures Certification.

Template Literals allow us to use a simple syntax to create a complex string.

Like C/C++, we also have the option to create an object using the constructor, and we also have getter/setter functions to retrieve or change the value.

New keywords like import/export allow us to only use the function we need from another file.

The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.

Mozilla

A Promise, is a constructor function. When a Promise completes its task, if it succeeds then it calls a resolve function, otherwise, when it fails, it calls a reject function. We can handle both using the functions then and catch.

**Thoughts:**

Confused by the ES6 syntax.

I need more practice.

**Link to tweet:**

[twitter-follow screen_name='20Gabriele20']

February 2024
MTWTFSS
 1234
567891011
12131415161718
19202122232425
26272829 

Archives

Gabriele Ferro Home
Copyright © Ferro Gabriele. All rights reserved.