JavaScript Best Practices — Sorting Imports, Symbols, String Expressions, and Generators

John Au-Yeung
May 26, 2020 · 4 min read
Photo by Markus Spiske on Unsplash

JavaScript is a very forgiving language. It’s easy to write code that runs but has mistakes in it.

In this article, we’ll take a look at whether we should sort imports in our code, the proper way to define symbols, the spacing of delimiters of expressions in template strings, and calling other generator functions…