The following code results in the error
Unexpected token `for'

I'm not a JavaScript expert, but it looks valid to me:

Qt Code:
  1. for (i=1;i<=10;i++)
  2. {
  3. // Do something
  4. }
To copy to clipboard, switch view to plain text mode