ES6 gives us a new way of assigning values using pattern matching allowing us to destructure objects and arrays to the smaller pieces that we require. This gives us a more expressive way mapping values from one object to smaller variables.
ES6 introduces a new way of assigning properties to an Object Literal to save us some of those precious keystrokes along with some fancy way of assigning computed properties.
Stringin ES6 has a few new tricks up it’s sleeve’s and I love it.
Stringnow supports templating and it is now also iterable - which is a pretty big deal if you’re into
ES6 adds a few new features that allows for more expressive and concise way of declaring parameters for various use cases. Let’s have a look at the new default parameter and rest parameters and understand their use.