Skip to content

Commit 64f819b

Browse files
Clarify which function we are referring to (mdn#42685)
Clarified the explanation of function calls and provided an example of the 'random()' function.
1 parent 7a9bb24 commit 64f819b

File tree

1 file changed

+1
-1
lines changed
  • files/en-us/learn_web_development/core/scripting/functions

1 file changed

+1
-1
lines changed

files/en-us/learn_web_development/core/scripting/functions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ This function draws 100 random circles inside a {{htmlelement("canvas")}} elemen
109109
draw();
110110
```
111111

112-
rather than having to write all that code out again every time we want to repeat it. Functions can contain whatever code you like — you can even call other functions from inside functions. The above function, for example, calls the `random()` function three times, which is defined by the following code:
112+
rather than having to write all that code out again every time we want to repeat it. Functions can contain whatever code you like — you can even call other functions from inside functions. For example, the `draw()` function seen above calls the `random()` function three times; `random()` is defined by the following code:
113113

114114
```js
115115
function random(number) {

0 commit comments

Comments
 (0)