DEV Community


Discussion on: Common JavaScript Tips

lucassperez profile image
Lucas Perez

I once intentionally used a var declaration at a C style for loop so the value would be accessible from the outside and I got a React warning asking me not to do it. I went quickly from "I'm a genius!" to "Ima refactor dis..." ):