JavaScript JavaScript and the DOM Getting a Handle on the DOM Selection Review

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 44,055 Points

If this is the right question, the quiz wants you to use document.getElementsByTagName which returns a collection. To select an item from the collection you will have to include an index. Since there is only one body the index will be zero.

document.getElementsByTagName('body')[0]