I hope somebody can help - this has been driving me crazy. I have a simple .js file that looks like this: import System; import System; import System.IO; import System.Windows.Forms; var x = 13; I'm getting a Syntax error at Line 1, Char 1. What is wrong with the import statements?
You don't need those import sentences. And check the way you refer your .js file on your .html file. Should be something like this inside your <head> section: <script src="../js/yourFile.js" language="JavaScript" type="text/javascript"></script>