re: Do's and Don'ts for Javascript Newbies VIEW POST

TOP OF THREAD FULL DISCUSSION
re: For sure a bad idea. Just a little anecdote.

Here's some more web anecdotes

Because it's seems not standard :/ but you can easely recreate this idea:

document.querySelectorAll("[id]").forEach(el => window[el.id] = el);

code of conduct - report abuse