minor fixes

This commit is contained in:
Ilya Kantor 2022-04-14 09:06:06 +03:00
parent d41fcbf18a
commit 8831603275

View file

@ -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`: