Design a site like this with WordPress.com
Get started

Difference between remove and empty methods in javascript

Most of the times, these methods are confused with each other or are thought of as performing the same functionality. But,remove()┬áremoves the selected element and all its child elements whereas empty() removes only the child elements from the selected element. Moreover, we can also filter the element to be removed in a specific class by... Continue Reading →

Blog at WordPress.com.

Up ↑