Skip to content

Commit d1714a3

Browse files
authored
Update article.md
1 parent 61f5a08 commit d1714a3

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

1-js/02-first-steps/15-function-basics/article.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -264,17 +264,9 @@ function zobrazZprávu(odKoho, text) {
264264
````
265265
266266
### Alternativní výchozí argumenty
267-
Někdy má smysl nenastavovat výchozí hodnoty argumentů v deklaraci funkce, ale až později.
267+
Někdy má smysl nastavovat výchozí hodnoty argumentů až později po deklaraci funkce.
268268
269-
<<<<<<< HEAD
270269
Abychom během provádění funkce ověřili, zda argument byl předán, můžeme jej porovnat s `undefined`:
271-
=======
272-
### Alternative default parameters
273-
274-
Sometimes it makes sense to assign default values for parameters at a later stage after the function declaration.
275-
276-
We can check if the parameter is passed during the function execution, by comparing it with `undefined`:
277-
>>>>>>> 53b35c16835b7020a0a5046da5a47599d313bbb8
278270
279271
```js run
280272
function zobrazZprávu(text) {

0 commit comments

Comments
 (0)