6
Spent 6 hours debugging a missing semicolon last night
I was following a JavaScript tutorial from 3 years ago and couldn't figure out why my loop wouldn't run. Turns out I forgot a single semicolon on line 47 in VS Code. Has anyone else wasted a whole evening on something this tiny?
2 comments
Log in to join the discussion
Log In2 Comments
the_michael1mo ago
Used to roll my eyes at people saying semicolons matter that much in JS. Then I spent four hours tracking down a bug that turned out to be ASI failing on a return statement. Now I just put them everywhere automatically, even in languages that dont need them. Its crazy how one little character can just eat your whole evening like that.
3
the_richard1mo ago
That reminds me of the time I spent an hour debugging a missing comma in a config file, so I feel your pain.
8