Parameters section
update parameter name from "next" to "text"
This commit is contained in:
parent
144a2fe6c3
commit
a233ed2944
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue