minor fixes
This commit is contained in:
parent
d41fcbf18a
commit
8831603275
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ On the other hand, it's independently called every time when `text` is missing.
|
||||||
````smart header="Default parameters in old JavaScript code"
|
````smart header="Default parameters in old JavaScript code"
|
||||||
Several years ago, JavaScript didn't support the syntax for default parameters.
|
Several years ago, JavaScript didn't support the syntax for default parameters.
|
||||||
|
|
||||||
So people used some other ways to specify default values, that you meet in old scripts.
|
So people used other ways to specify them. Nowadays, we can mostly come across them in old scripts.
|
||||||
|
|
||||||
For example, an explicit check for `undefined`:
|
For example, an explicit check for `undefined`:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue