Search code examples
javascriptintelintel-xdk

Intel XDK: editor doesn't recognize <script>


I've chosen a basic Intel XDK theme, but as soon as I try to paste some JavaScript into the .js page I receive the following message:

Expected an identifier and instead saw '<'.(E030)

enter image description here

As you can see the first '<' is not interpreted. Why?


Solution

  • You don't need to include the script tag in a .js file. You only use the script tag when including the javascript in a html file.