Which JavaScript method is used to add a new HTML element to the DOM?

PYQ Bihar STET 2025

Which JavaScript method is used to add a new HTML element to the DOM?

  1. A.

    appendElement()

  2. B.

    createElement()

  3. C.

    newElement()

  4. D.

    addElement()

Attempted by 341 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bihar Stet Computer Science Complete Course

Loading lesson…