Hacker News new | past | comments | ask | show | jobs | submit login

This was mostly useful back in the days when we had to manually query dom during development and debugging. I've seen some pretty horrible things but never have I seen this in a codebase, not even in a commit



I remember using it on the first Javascript I ever used around 20 years ago. I naively assumed that the DOM was like state in a more procedural language and this variable trick played into that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: