📢
11

Had a coding meltdown over a missing semicolon for 2 hours today

So I was working on this basic JavaScript project for a class, just a simple calculator thing. Spent like 2 hours trying to figure out why my function wouldn't run. Checked everything, rewrote the whole thing twice. Finally my friend looked over my shoulder and pointed out I forgot a semicolon after a variable. Felt so dumb but also relieved it wasn't something bigger. Has anyone else had a bug that was way simpler than you thought?
2 comments

Log in to join the discussion

Log In
2 Comments
valthomas
valthomas1mo ago
Read somewhere that 90% of bugs are just typos lol
3
the_jana
the_jana1mo ago
Oh man, that takes me back to a time I was debugging a CSS layout issue for hours. The whole page was broken on mobile. I tried different flexbox properties, I even copied the code from a tutorial. Turned out I typed "flex-start" instead of "flex-start" with a hyphen between "flex" and "start". Wait no, that's not right either. I mean I wrote "flexbox" as one word in a property name. Spent a whole afternoon on that. But it's always the tiny things, right? Like when I forget a closing bracket in a console.log and the whole script just dies silently.
1