Reword sentence on line 268
This commit is contained in:
parent
1edb0a3833
commit
ae6f9d3cc2
1 changed files with 1 additions and 1 deletions
|
@ -265,7 +265,7 @@ function showMessage(from, text) {
|
||||||
|
|
||||||
### Alternative default parameters
|
### Alternative default parameters
|
||||||
|
|
||||||
Sometimes it makes sense to assign default values for parameters not in the function declaration, but at a later stage.
|
Sometimes it makes sense to assign default values for parameters at a later stage after the function declaration.
|
||||||
|
|
||||||
We can check if the parameter is passed during the function execution, by comparing it with `undefined`:
|
We can check if the parameter is passed during the function execution, by comparing it with `undefined`:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue