ES6: String
String
in ES6 has a few new tricks up it’s sleeve’s and I love it. String
now supports templating and it is now also iterable – which is a pretty big deal if you’re into String
parsing.
String
in ES6 has a few new tricks up it’s sleeve’s and I love it. String
now supports templating and it is now also iterable – which is a pretty big deal if you’re into String
parsing.
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.
The arrow function allows declaration of anonymous functions (lambda) in a more concise way. Let’s see what’s so great about it :).
var
in JavaScript does not work particularly well, it confuses the heck out of beginners with it’s scope and the fact that it’s used everywhere for all concepts including constants make it difficult to identify the intent of each defined variable. ES6 introduces some new keywords that is easier to understand in terms of both scope and intent.