27
Spent 3 hours debugging a missing semicolon last night and wanted to throw my laptop out the window
Been learning JavaScript for about 2 months now. Working on a little project to calculate material costs for my flooring quotes. Had this one function that just would not run no matter what I did. Checked every line three times. Rewrote parts of it. Finally zoomed in on line 47 and there it was - a stupid semicolon I forgot after an object definition. Three hours of my life gone. Who else has had bugs this dumb that took way too long to find?
3 comments
Log in to join the discussion
Log In3 Comments
emma_garcia14d ago
Just use semicolons everywhere to be safe, that usually works for me.
2
holly70914d ago
Three semicolons in a row caused an error that crashed my whole website last week.
6
hannah_west3914d ago
Just use semicolons everywhere to be safe" - nah, missing one semicolon isn't the end of the world. It sucks when it happens but you'll get faster at spotting them.
2