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/)