I have a variable named age and a function named AGE. Ignore the problem I am having with JScript beign case insensitive at the moment, i.e. age(dob) and AGE(dob) both work...
Why does JScript try to use the age variable as a function? My best guess would be that jScript is treating the function declaration as both declaration and expression...
function AGE(birthDate) { return cmd.Age(birthDate); }; var age = 32; var foo = age; // Error on AGE function
I am using the ScriptControlClass in a C# application and using JScript as a simple embedded language to provide some simple-medium complexity expression to my user base...