A function declaration includes parameters that are not separated with commas or a type annotated parameter that is specified as Type identifier
instead of identifier : Type
.
To correct this error
-
Make sure all parameters are separated with commas.
-
Specify type-annotated parameters with the
identifier : Type
syntax.
See Also
Reference
function StatementConcepts
Other Resources
JScript ReferenceJScript Functions