Skip to content

Commit 5b49d62

Browse files
Merge pull request #392 from agilatakishiyev/master
Fix wrong naming of `default parameters`
2 parents 3ff9eba + 2cab77b commit 5b49d62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ function paintCar(car, color) {
201201

202202
**[⬆ back to top](#table-of-contents)**
203203

204-
### Use default arguments instead of short circuiting or conditionals
204+
### Use default parameters instead of short circuiting or conditionals
205205

206-
Default arguments are often cleaner than short circuiting. Be aware that if you
206+
Default parameters are often cleaner than short circuiting. Be aware that if you
207207
use them, your function will only provide default values for `undefined`
208208
arguments. Other "falsy" values such as `''`, `""`, `false`, `null`, `0`, and
209209
`NaN`, will not be replaced by a default value.

0 commit comments

Comments
 (0)