Skip to content

Commit cce8733

Browse files
committed
Merge pull request GitbookIO#5 from mambocab/master
Fix typos in function lesson
2 parents 27fea62 + 5ae2c63 commit cce8733

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

functions/declare.md

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

3-
Functions like variables must be declared. Lets 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` which 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) {
@@ -18,7 +18,7 @@ var double = function(x) {
1818

1919
---
2020

21-
Declare a function named `triple` that takes and argument and returns it's triple.
21+
Declare a function named `triple` that takes an argument and returns its triple.
2222

2323
```js
2424

0 commit comments

Comments
 (0)