getElementById vs. getElementsByClassName and getElementsByTagName. Why the naming is different?
Out of curiosity, why the naming of getElementById()
method is different from getElementsByClassName()
and getElementsByTagName()
? That is, why it doesn’t include the word “name”?