December 2018
Intermediate to advanced
222 pages
6h 6m
English
Function can pass input parameters. The input parameters are declared the same way as variables are.
In the previous HelloWorld example, we define setNewGreeting using the input parameter, string _newGreeting. Here is an example of this step:
function setNewGreeting (string _newGreeting) { greeting = _newGreeting;}
Read now
Unlock full access