🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀
New No-Code Track! 🚀 New videos dropping every week—start learning today!
Take our "AI in Tech Jobs" survey and win 3 months free Treehouse!
🤑 Join the Treehouse affiliate program and earn 25% commission!
✨ No-code curious? Check out 4 new FREE Adalo courses and start building an app in minutes — no code required!
What does document.getElementById() method return?
document.getElementById()
Choose the correct answer below:
An Element object representing the element with the specified ID
Element
An HTMLCollection of elements
HTMLCollection
A Number object representing the index value of the selected element
Number
A Boolean object indicating the whether the selection method returned anything
Boolean
There was an error while reporting the question. Please try again, or contact support directly.
Describe the issue (optional) (required)
Your feedback has been submitted. Thank you!
If you continue experiencing problems, please contact support at help@teamtreehouse.com.
Quizzes are the best way to test your knowlege. Sign up for Treehouse today and prove yourself. We guarantee 100% satisfaction.