impactbyte-drogon-scholarship / discussion

General Discussion
https://glints.id
The Unlicense
2 stars 0 forks source link

Why HTML/DOM tree with id can be accessed directly through global variable #6

Open michaeltamsil opened 6 years ago

michaeltamsil commented 6 years ago

and this should be avoided and not many programmer used it for case study https://alifraher.github.io/javascript-calculator/

full explained https://stackoverflow.com/questions/15419774/can-i-access-dom-element-directly-by-id

fullstuck commented 6 years ago

Thanks for the explanations :+1:

mhaidarhanif commented 6 years ago

That's it, if something is not a standard, it should be avoided.