Sidebar

What does "Missing 'new' prefix when invoking a constructor" mean and how do I resolve it?

+1 vote
830 views
asked Oct 18, 2017 by terrie-g-7436 (3,950 points)
I have created a function called CalcAge.  When I try to use it in a mapping, I get the above error.

1 Answer

+1 vote
QIE uses JSHint to validate javascript code. JSHint expects functions that start with a capital letter to be object definitions. To resolve this error you can rename your function to start with a lower case letter, or simply ignore the error message.
answered Oct 18, 2017 by terrie-g-7436 (3,950 points)
...