Skip to content

Commit 3cdee0d

Browse files
authored
Missing commas
1 parent 089424e commit 3cdee0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ function isPrime(n) {
426426
}
427427
```
428428
429-
The second variant is easier to understand isn't it? Instead of the code piece we see a name of the action (`isPrime`). Sometimes people refer to such code as *self-describing*.
429+
The second variant is easier to understand, isn't it? Instead of the code piece we see a name of the action (`isPrime`). Sometimes people refer to such code as *self-describing*.
430430
431431
So, functions can be created even if we don't intend to reuse them. They structure the code and make it readable.
432432
@@ -442,7 +442,7 @@ function name(parameters, delimited, by, comma) {
442442
443443
- Values passed to a function as parameters are copied to its local variables.
444444
- A function may access outer variables. But it works only from inside out. The code outside of the function doesn't see its local variables.
445-
- A function can return a value. If it doesn't then its result is `undefined`.
445+
- A function can return a value. If it doesn't, then its result is `undefined`.
446446
447447
To make the code clean and easy to understand, it's recommended to use mainly local variables and parameters in the function, not outer variables.
448448

0 commit comments

Comments
 (0)