Jump to content

SyntaxError with javascript


thatguy

Recommended Posts

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 :good:

Parallax Scrolling.html

Link to comment
Share on other sites

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 by Ingolme
More information
  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...