This Question May Have Been Asked Before:
JSLint: was used before it was defined
When I ran JSlint
, I encountered errors like this:
foo
is actually defined in another file calledfoo.js
. Since there are no "import / require" directives inJavaScript
to refer to functions from other sources, how can I resolve this error flagged byJSlint
?