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 →

Create a free website or blog at WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started