thatguy Posted January 16, 2015 Share Posted January 16, 2015 Hi, I'm in the process of learning javascript and I have an issue with a syntax error. However after looking over the area I haven't been able to find the issue. This is a Parallax scrolling script for a browser game. I've highlighted the area, the KeyUp handler, I'm wondering if there's an issue with my code somewhere else? Or am I just noobing it up? Thanks for any input Parallax Scrolling.html Link to comment Share on other sites More sharing options...
Ingolme Posted January 16, 2015 Share Posted January 16, 2015 (edited) I went and removed the extra part you added in the code. (if you want to point something out in your code, use comments // or /* */) The problem is that you have forgotten to close the previous addEventListener() function that started on line 213. Edited January 16, 2015 by Ingolme More information 1 Link to comment Share on other sites More sharing options...
justsomeguy Posted January 16, 2015 Share Posted January 16, 2015 The code before the indicated line isn't properly terminated. 1 Link to comment Share on other sites More sharing options...
thatguy Posted January 16, 2015 Author Share Posted January 16, 2015 Thanks a lot for the help, and okay I'll take that // into account next time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now