JavaScript Clean Code — Default Parameters, Properties, and Singletons
Cleaning up our JavaScript code is easy with default parameters and property shorthands.
In this article, we’ll look at how we can use them to make our code easier to read and write.