My first big JavaScript project had like five variables with the same name. Total mess. Took me a whole weekend to fix all the weird bugs it caused. I still get nervous using var instead of let or const. It's one of those lessons you only learn the hard way.
Remember getting so lost in scope issues I almost gave up coding. I had a variable that kept changing when I didn't want it to, and it was all because I didn't understand closures. It really is a universal rite of passage.