0
Am I the only one who spent 6 hours debugging a missing semicolon?
I was working on a simple JavaScript project last night, just a little todo list app. I kept getting this weird error and thought it was a logic issue, so I rewrote half the code. Turns out I was missing one semicolon in a for loop after 6 hours of messing around. Has anyone else had a tiny typo eat up an entire evening like that?
2 comments
Log in to join the discussion
Log In2 Comments
singh.blair16d ago
honestly I gotta be the one to say it but like... not really? if you're spending six hours on a semicolon that's kind of on you for not using literally any tool that catches basic syntax errors. console gives you the exact line number most of the time lol
10
max47216d ago
Woke up one morning to find my whole React app was broken, just a blank screen staring back at me. Spent like 4 hours digging through components and state management, ready to throw my laptop out the window. Finally realized I had a curly brace that was facing the wrong way in the main App.js file... just one little curly brace. My friend said I should have used an IDE with better highlighting, but I don't know, sometimes you just get tunnel vision and miss the obvious stuff.
1