Mark As Completed Discussion

Are you sure you're getting this? Click the correct answer from the options.

What is the purpose of the getElementById() method?

Click the option that best answers the question.

  • To select multiple elements based on a CSS class
  • To create a new DOM element
  • To select a single element based on its unique identifier
  • To modify the properties of an existing DOM element