Skip to content

Commit d35dc3b

Browse files
committed
Grammar fixes.
Changed a usage of “which” to “that” and a colon to a semicolon.
1 parent 5fa3d51 commit d35dc3b

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)