Skip to content

Commit 499d79a

Browse files
committed
Merge pull request GitbookIO#41 from Hermanya/master
Declaring Functions notes
2 parents 06f9987 + 8f05f88 commit 499d79a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

functions/declare.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ function double(x) {
88
}
99
```
1010

11+
>*Note:* the function above **may** be referenced before it has been defined.
12+
1113
Functions are also values in JavaScript; they can be stored in variables (just like numbers, strings, etc ...) and given to other functions as arguments :
1214

1315
```javascript
@@ -16,6 +18,8 @@ var double = function(x) {
1618
};
1719
```
1820

21+
>*Note:* the function above **may not** be referenced before it is defined, just like any other variable.
22+
1923
---
2024

2125
Declare a function named `triple` that takes an argument and returns its triple.

0 commit comments

Comments
 (0)