FIT100
Function Features (cont.)
•
Global … declared outside of functions
<script LANGUAGE='JavaScript'>
var
priceperoz = 368.40;
...
function worthau ( weight )
{
// Compute the dollar value
//
of weight at priceperoz
return weight * 12 * priceperoz;
}
...
Global to
function