From 3ec6c655869c5b16767e690e498935ac70e72df5 Mon Sep 17 00:00:00 2001 From: Charles-Axel Dein Date: Tue, 21 Jul 2020 12:16:54 +0200 Subject: [PATCH] Implement feedback --- training/front-end/01-modern-javascript.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/training/front-end/01-modern-javascript.md b/training/front-end/01-modern-javascript.md index 64070eb..2b561bc 100644 --- a/training/front-end/01-modern-javascript.md +++ b/training/front-end/01-modern-javascript.md @@ -31,6 +31,8 @@ - [Chaining promises](#chaining-promises) - [Async functions](#async-functions) - [Modules](#modules) + - [Other features](#other-features) + - [Optional chaining](#optional-chaining) - [References](#references) @@ -164,8 +166,8 @@ const constantVar = "a"; // Raises "constantVar" is read-only constantVar = "b"; -let mutableVar = "a"; -mutableVar = "a"; +let theVar = "a"; +theVar = "a"; // Note: this will work ok const constantObject = { a: 1 }; @@ -278,6 +280,10 @@ ES Module syntax: - default export and imports - renaming imports +## Other features + +### Optional chaining + ## References - [ES5 to ESNext — here’s every feature added to JavaScript since 2015](https://www.freecodecamp.org/news/es5-to-esnext-heres-every-feature-added-to-javascript-since-2015-d0c255e13c6e/)