Spent 3 hours hunting a bug that was just a missing comma in my if statement
Honestly I felt so dumb last Tuesday when I finally found it. I had been staring at this little calculator script for like 3 hours, convinced my math logic was broken, rewriting the function over and over. I even started googling stuff like "javascript addition not working" at one point. Then I looked at my if statement and saw I wrote `if (x = 5)` instead of `if (x === 5)`. One equals sign. That was it. A single character had me ready to give up on coding completely. Now I read my conditions out loud before I run anything, which sounds silly but it has saved me twice already. Has anyone else had a bug that turned out to be one tiny typo after hours of searching?