Merge pull request #171 from kitiya/patch-2

Parameters section
This commit is contained in:
Ilya Kantor 2017-09-08 18:20:01 +02:00 committed by GitHub
commit 270a0e02e5

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: