i'm nearly embarrassed to ask this kinda basic question, but i can't find the error... I try to provide code from external libraries locally, but it won't work. The code works perfectly when loaded from an URL or injected directly into the HTML file, but it doesn't recognize the javascript file.
Tried to move the files since i thought i just had typos, but even webstorm says it's correct. Also provided correct type to the file.
In this scenario the HTML file and the local .js files are in the same folder. External file i try to embed locally: here
<!DOCTYPE html>
<html>
<head>
<title>Test file</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="survey.jquery.js"></script>
</head>
<body>
</body>
</html>
This simple code results everytime in the error SyntaxError: expected expression, got '<'
in the Firefox console.
Also the Survey object from the file isn't recognized/loaded. Looking up the error results in missed out brackets, but the code should be correct.