S
9

Spent 6 hours debugging a missing semicolon in JavaScript yesterday

I was building a simple calculator for a course project and couldn't figure out why the equal button did nothing. Turns out I forgot one semicolon on line 47 that broke the whole event listener. Anyone else get tripped up by something this small?
3 comments

Log in to join the discussion

Log In
3 Comments
jesse994
jesse99422d ago
Missed a curly brace once and my whole quiz app just went blank for an hour.
2
emmaallen
emmaallen22d ago
I used to roll my eyes at people complaining about missing braces, then I spent two hours tracking down one missing semicolon in a React project and yeah, I get it now.
8
lisaf38
lisaf3818d ago
You said it's like an hour of your life gone, but c'mon, two whole hours? That's just a Tuesday for anyone who's ever tried to debug CSS. I'd say half the time it's not even the semicolon, it's just the universe testing your patience.
5