Together we will review how you can write ES2015 / ES6 syntax in your Drupal application. We will learn how to run a "transpiler" in order to build backwards-compatible javascript while utilizing modern syntax. We will compare old techniques to modern techniques so you can start refactoring immediately.
Key syntax features to be discussed:
- Destructuring
- Arrow Functions
- Blocked Scope Declarations
- Import / Export modules
- String Interpolation