25
Finally stopped forgetting semicolons in JavaScript
Kept getting syntax errors for weeks. Turned out I was missing semicolons at the end of lines in a loop. Once I started adding them every single time my code ran clean. Anyone else have a dumb mistake that took way too long to figure out?
2 comments
Log in to join the discussion
Log In2 Comments
hannah_price7927d ago
lol oh man I've been there with missing brackets
1
harris.vera13d ago
Oh man @hannah_price79, I feel that pain! What helped me was using a code editor that highlights matching brackets in color so I can spot the missing one right away. Once I started paying attention to the highlighting, it saved me a ton of time debugging.
0