I\'m getting this JavaScript error on my console:
Uncaught SyntaxError: Unexpected token ILLEGAL
This is my code:
I got this error in chrome when I had an unterminated string after the line that the error pointed to. After closing the string the error went away.
Example with error:
var file = files[i]; // SyntaxError: Unexpected token ILLEGAL
jQuery('#someDiv').innerHTML = file.name + " (" + formatSize(file.size) + ") "
+ "Error is here";
Example without error:
var file = files[i]; // No error
jQuery('#someDiv').innerHTML = file.name + " (" + formatSize(file.size) + ") "
+ "Error was here";