Thank You. In line#3 and #7 you've added "aa". Is this then referred to as the argument of "mytest". That's the portion I was missing during my testing.
Exactly; in your code the variable
'aa' is global (i.e. residing in the document namespace) when defined within
c:test1 and
c:test2, whereas the parameter
'aa' required by your
mytest function is local to the
mytest function, and is assigned the value supplied when mytest is evaluated - in your code, you would have received a
'too few arguments' error.
In my code, the variable
'aa' is local to both
c:test1 and
c:test2 and the
value of
'aa' is then passed to the function
mytest and is assigned to the local parameter
'aa' in the
mytest function.