15
Finally figured out why my code kept breaking, it was the semicolons
Spent about 5 hours last Friday debugging a script that kept throwing errors on line 42. Tried rewriting the whole function, checked variable names, even updated my editor. Turns out I was mixing up semicolons and commas in my object literals, one tiny character each time. Took a break, watched a YouTube video on JavaScript syntax, and it clicked. Has anyone else had a silly character error waste a whole session like that?
0 comments
Log in to join the discussion
Log In0 Comments
No comments yet
Be the first to share your thoughts on this discussion.