Hacker News new | ask | show | jobs
by vekatimest 539 days ago
I had no idea named elements just become globals like that. Seems kind of ridiculous
2 comments

I discovered this perhaps ten or more years ago. I have used IDs a global in hundreds (thousand?) of efforts with no issues. Ever.

Of course, I am but a single stack developer, so your experience may vary

id-s do, which is handy here, but sometimes exciting if you aren't expecting it.