File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
1-js/02-first-steps/15-function-basics Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -264,17 +264,9 @@ function zobrazZprávu(odKoho, text) {
264
264
` ` ` `
265
265
266
266
### 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 .
268
268
269
- <<<<<<< HEAD
270
269
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
278
270
279
271
` ` ` js run
280
272
function zobrazZprávu (text ) {
You can’t perform that action at this time.
0 commit comments