solved- problems with Uncaught SyntaxError: Unexpected token ) |
This is a little embarassing. I had my javascript code almost working, fooled with it a little too much trying to get the xhr working. I am using notepad as my editor and thus it has no syntax checking. Additionally I have a really hard time with the inline call back functions. I am trying to run this code in the Chrome debugger and I keep getting "unexpected token )" at the line right after the sendResponse(token). Can anyone see where my syntax is screwed up. Does anyone know of a javascript editor that helps with syntax? Are there any better tools for working with javascript?
Code: ////var iToken;
proof that an old dog can learn new tricks
(03-23-2018, 04:06 PM)richb201 Wrote: This is a little embarassing. I had my javascript code almost working, fooled with it a little too much trying to get the xhr working. I am using notepad as my editor and thus it has no syntax checking. Additionally I have a really hard time with the inline call back functions. I am trying to run this code in the Chrome debugger and I keep getting "unexpected token )" at the line right after the sendResponse(token). Can anyone see where my syntax is screwed up. Does anyone know of a javascript editor that helps with syntax? Are there any better tools for working with javascript? editor (free): - atom https://atom.io/ - visualstudio code https://code.visualstudio.com/ - eclipse http://www.eclipse.org/downloads/eclipse-packages/ - netbeans https://netbeans.org/ / https://netbeans.apache.org/ (half dead) editor (not free): - phpstorm or webstorm https://www.jetbrains.com/webstorm/ https://www.jetbrains.com/phpstorm/
Code: ////var iToken;
Thanks. I found it. Now back to my real problem!
proof that an old dog can learn new tricks
|
Welcome Guest, Not a member yet? Register Sign In |