Okay so the variables have to be declared before you can use them in an operation like that?
No- your missing what I mean.
If you had something like this:
var a, b;
a=34;
b=12;
c=a*b;
the "var" line is unneeded; it will work either way. However, if you have a function like that you described above, but without parameters:
function product()
{
return a*b;
}
then it would be necessary to assign values to a and b before calling the function.
a=13;
b=5;
c=product();
the "definitions" as you call them, in the parameter list of the function, tell the calling procedure how many arguments can be passed AND also tells the interpreter what they are to be referred to as in the function body.