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

TOP OF THREAD FULL DISCUSSION
re: Why so? 😨

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