The code has what appears to be a C-style method declaration of the form Type identifier(...)
. To declare a method in JScript, use the function identifier(...) : Type
syntax.
To correct this error
-
Declare methods using the
function identifier(...) : Type
syntax.
See Also
Reference
function StatementConcepts
Other Resources
JScript ReferenceClass-based Objects