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;
}