Parameters section

update parameter name from "next" to "text"
This commit is contained in:
kitiya 2017-09-05 15:06:07 -06:00 committed by GitHub
parent 144a2fe6c3
commit a233ed2944

View file

@ -150,7 +150,7 @@ showMessage('Ann', "What's up?"); // Ann: What's up? (**)
*/!*
```
When the function is called in lines `(*)` and `(**)`, the given values are copied to local variables `from` and `next`. Then the function uses them.
When the function is called in lines `(*)` and `(**)`, the given values are copied to local variables `from` and `text`. Then the function uses them.
Here's one more example: we have a variable `from` and pass it to the function. Please note: the function changes `from`, but the change is not seen outside, because a function always gets a copy of the value: