Skip to content

Commit 9f83b6b

Browse files
authored
Wording
1 parent 6109448 commit 9f83b6b

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
@@ -22,7 +22,7 @@ function showMessage() {
2222
}
2323
```
2424

25-
The `function` keyword goes first, then goes the *name of the function*, then a list of *parameters* in the brackets (empty in the example above) and finally the code of the function, also named "the function body".
25+
The `function` keyword goes first, then goes the *name of the function*, then a list of *parameters* between the parentheses (empty in the example above) and finally the code of the function, also named "the function body", between curly braces.
2626

2727
![](function_basics.png)
2828

@@ -43,7 +43,7 @@ showMessage();
4343

4444
The call `showMessage()` executes the code of the function. Here we will see the message two times.
4545

46-
This example clearly demonstrates one of the main purposes of functions: to evade code duplication.
46+
This example clearly demonstrates one of the main purposes of functions: to avoid code duplication.
4747

4848
If we ever need to change the message or the way it is shown, it's enough to modify the code in one place: the function which outputs it.
4949

0 commit comments

Comments
 (0)