Spent 6 hours on a missing semicolon in my first JavaScript project
I was building a simple to-do list app, following a guide from a site called FreeCodeCamp. Everything looked right, but the 'add task' button just would not work. I checked the logic, the event listener, everything. I even rewrote the function three times from scratch. Finally, after almost a full day, I spotted it: a missing semicolon on line 47. The console error was not helpful at all. It just said 'unexpected token'. Has anyone else lost a huge chunk of time to a tiny syntax error like that when starting out?