Skip to content

Commit 153dfe8

Browse files
committed
Merge pull request GitbookIO#38 from hasselg/function_declaration
Grammar fixes.
2 parents 4b0fd45 + d35dc3b commit 153dfe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

functions/declare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Declaring Functions
22

3-
Functions, like variables, must be declared. Let's declare a function `double` which accepts an **argument** called `x` and **returns** the double of x :
3+
Functions, like variables, must be declared. Let's declare a function `double` that accepts an **argument** called `x` and **returns** the double of x :
44

55
```javascript
66
function double(x) {
77
return 2 * x;
88
}
99
```
1010

11-
Functions are also values in JavaScript: they can be stored in variables (just like numbers, strings, etc ...) and given to other functions as arguments :
11+
Functions are also values in JavaScript; they can be stored in variables (just like numbers, strings, etc ...) and given to other functions as arguments :
1212

1313
```javascript
1414
var double = function(x) {

0 commit comments

Comments
 (0)