8
Spent 4 hours debugging a missing semicolon last night
I was working on this little JavaScript project where I was trying to make a button change color when clicked. Simple stuff for practice right? Well the button just sat there doing nothing for like 2 hours while I kept rewriting the whole function. Turned out I forgot a semicolon after one of my variables in the middle of the code. I felt so dumb because I was looking at the wrong line the whole time. My friend who's been coding for a while just laughed and said it happens to everyone. I learned that I need to slow down and check each line one by one instead of panicking. Has anyone else wasted a ton of time on a tiny typo like that?
3 comments
Log in to join the discussion
Log In3 Comments
hollyg591mo ago
Yeah man, same boat. Spent two hours on a Python script once because I typed "flase" instead of "false.
0
oliver_wilson491mo ago
Wait, TWO hours?
5
tarag2825d ago
Ctrl+F is your friend for that.
3