Hello all! I’ve been working on my Simon project for awhile now, and I think that I’ve hit a wall. I keep thinking of different ways to handle the problems, and I’m having to resist the urge to tear it down and rebuild it (again). I decided to just go ahead and publish it and get some feedback from the community. Any suggestions for improvements before I submit it? The code isn’t as clean as I would like it to be, but I think that getting some feedback is important before I do any further refactoring. Thank you in advance for taking the time to look at it!
http://www.zackward.net/projects/simon/
Zack Ward
I’m seeing this error in the console
SyntaxError: Unexpected identifier ‘gameElements’
and it seems to prevent me from starting the app. I can click on Power
, but everything else is unresponsive.
@PortableStick Are you still seeing this error? If so, what browser/OS are you using? Thank you in advance!
I sure am. I’m using the latest Safari.
@portableStick Hmmmm, strange. It’s working fine on Chrome/Win10. Are you on iOS or Mac?
Mac. Safari is a bit behind when it comes to ES6. Are you using any newer language features?
That’s probably it. I should use babel to transpile it all to es5. I’ll give that a shot.
@PortableStick Hmmm, I just changed “let” to “var”, I think that was the only es6 keyword in the file. Could you give it another shot?
Works now, and everything is great!
1 Like
Fantastic! Thank you for the feedback!