28
Spent 3 hours debugging a missing semicolon in JavaScript yesterday
I'm working on this basic calculator app for my portfolio and kept getting NaN errors. Turns out I forgot a semicolon after a variable declaration in my add function. Three hours of my life gone because of one stupid character. Has anyone else had a tiny syntax error waste your whole evening like that?
2 comments
Log in to join the discussion
Log In2 Comments
luna_wright1mo ago
That missing semicolon after a variable killed three hours of my time on a checkout form last month. It's wild how one tiny character can break everything and you end up staring at the same line for hours before spotting it.
10
max_torres441mo ago
Ha, dude my buddy once spent a whole night tracking down a comma in his code.
2