Based on my highlights
Disclaimer This chapter is a mix between my thoughts and my notes. My notes are fully based on the text, so, if you want to check exactly what the author said please refer to the highlights.
Syntax sugar is not only to shorten the code, drop a few words, and make it look more aestetically pleasant. The end goal is to have more concise and hopefully less clutter code at the end of the day.
Template literals are incredible powerful, it gives you a way to express strings of text with the plus benefit that you can use variables inside with ease. That is not the only nice addition with this feature. You can also create your own functions that will process the text and will output whatever you want. I sincerely recommend you to dive into the basics and start using it. Again, linting can be enforce to make good use of this ES6 feature.
var is mutable, "function scoped" and lead to a lot of issues in the past. With ES6,
let was introduced and there is no reason to use
var ever again.
const are block scoped, its behaviour is way more predictable and they don't suffer of several problems that
var has. Even if you are an IE8 fan, you can rely on babel to transpile your code.
There are a few flavors to choose in order to implement async behavior on your modules. If its possible I'd say go for async/await that is really easy to understand because it takes the asynchronicity out of the way (while reading the code). On the other hand if you are in a project that by default use callback functions, consider doing a first migration to promises. Its well worth the effort to learn the ins and outs of Promises which is not easy at the beginning and then if you think is neccessary migrate to
If you interact with 3rd party libraries, I'd recommend you to build a wrapper around the library so if the library use callbacks you use the same async invocation pattern throughout your project.