Walgreens

  www.walgreens.com
Work in HR? Unlock Free Profile

Walgreens Front End Web Developer Interview Question

I interviewed in Deerfield, IL and was asked:
"Why does Javascript have two ways of getting HTML elements for example one way is to use getElementByID and another is document.[element].[value]"
Add Tags [?]
Answer

Part of a Front End Web Developer Interview Review - one of 815 Walgreens Interview Reviews

Answers & Comments

0
of 0
votes
getElementByID is just a DOM method that provides a shortcut to get to the element its ID attribut. The same element is still located in the DOM tree and can be accessed if we know his full path. There are more than 2 ways: by class name by tag name etc...
- CheckThisResume.com on Apr 14, 2012

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.