March 2019
Intermediate to advanced
636 pages
27h 50m
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