var myListItems = document.getElementByTagName("a");
But, I'm getting the following error:
TypeError: document.getElementByTagName is not a function
Should it not display an array with all the anchor tags. If not how do I do that.