Input parameters

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;
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.42.128