:bathtub: Clean Code concepts adapted for JavaScript
80630 9227 1834 135

Wrong naming: `Use default arguments instead of short circuiting or conditionals`

In most of programming languages, parameters and arguments are different concepts. Also in JS when we look at the function from inside out we say parameter and when we look at the function from outside in we say argument. And as far as I know (and read from the blogs, documentations etc), the name of the concept of defaulting the values which are passed to the function is called default parameters not default arguments So in my honest opinion this can be confusing for newbies.