Spent an hour debugging a missing semicolon in my JavaScript code
Last Tuesday I was working on a simple calculator project for my coding class. It was supposed to add two numbers together but kept returning 'undefined'. I checked my variables, my functions, my console logs, everything looked fine. After 40 minutes of staring at the screen I realized I left out a semicolon after a line in my function. One tiny little character broke the whole thing. My instructor laughed and said this happens to everyone at least 10 times before they learn. Has anyone else had a bug that was just one dumb typo?