My solution proposals for the ES6 exercises.
freeCodeCamp module description:
"ECMAScript, or ES, is a standardized version of JavaScript. Because all major browsers follow this specification, the terms ECMAScript and JavaScript are interchangeable. Most of the JavaScript you've learned up to this point was in ES5 (ECMAScript 5), which was finalized in 2009. While you can still write programs in ES5, JavaScript is constantly evolving, and new features are released every year. ES6, released in 2015, added many powerful new features to the language. In this course, you'll learn these new features, including arrow functions, destructuring, classes, promises, and modules."
- 01 - Compare Scopes of the var and let Keywords
- 02 - Mutate an Array Declared with const
- 03 - Prevent Object Mutation
- 04 - Use Arrow Functions to Write Concise Anonymous Functions
- 05 - Write Arrow Functions with Parameters
- 06 - Set Default Parameters for Your Functions
- 07 - Use the Rest Parameter with Function Parameters
- 08 - Use the Spread Operator to Evaluate Arrays In-Place
- 09 - Use Destructuring Assignment to Extract Values from Objects
- 10 - Use Destructuring Assignment to Assign Variables from Objects
- 11 - Use Destructuring Assignment to Assign Variables from Nested Objects
- 12 - Use Destructuring Assignment to Assign Variables from Arrays
- 13 - Use Destructuring Assignment with the Rest Parameter to Reassign Array Elements
- 14 - Use Destructuring Assignment to Pass an Object as a Function's Parameters
- 15 - Create Strings using Template Literals
- 16 - Write Concise Object Literal Declarations Using Object Property Shorthand
- 17 - Write Concise Declarative Functions with ES6
- 18 - Use class Syntax to Define a Constructor Function
- 19 - Use getters and setters to Control Access to an Object
- 20 - Create a Module Script
- 21 - Use export to Share a Code Block
- 22 - Reuse JavaScript Code Using import
- 23 - Use * to Import Everything from a File
- 24 - Create an Export Fallback with export default
- 25 - Import a Default Export
- 26 - Create a JavaScript Promise
- 27 - Complete a Promise with resolve and reject
- 28 - Handle a Fulfilled Promise with then
- 29 - Handle a Rejected Promise with catch