What is ES6? How can I use it? Follow this series to learn more.
For my employment we have been asked to learn/revisit ES6 as we begin to transfer the JS in our codebase into ES6, if you're here then its likely you already know what ES6 is, if you don't...let me summarise below.
- Arrow Functions
- New Variable scoping (var, let, const)
- Template Literals
- Object and Array Destructuring
- Default Parameters
- Rest and Spread Operators
Many ES6 tutorials will also cover various Array "helpers". I'll be looking to touch on these too as they are frequently used, but I have found often referred back to as a reminder of how to write it "properly". So those are:
- and reduce (save the hardest til last!)
In this series, for each of the above I will try to include a variety of examples and real-world use cases