What is the difference between remove() and empty() methods?

72. What is the difference between remove() and empty() methods?

  1. remove() removes the selected element and its child elements while empty() removes the child elements of the selected element
  2. remove() removes the child elements of the selected element while empty() removes the selected elements and its child elements
  3. remove() removes the child elements while empty() removes the content of the selected element
  4. remove() removes the child elements while empty() removes the content of the selected element and its child elements

Answer: A) remove() removes the selected element and its child elements while empty() removes the child elements of the selected element

Explanation:

The difference between remove() and empty() methods is: remove() removes the selected element and its child elements while empty() removes the child elements of the selected element.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.