Native Javascript alternatives to jQuery methods

Native Javascript alternatives to jQuery methods

The differences lie in:

An example of filter function:

Remove the element from the DOM. Append child element after the last child of parent element Insert a new node before the selected elements Insert a new node after the selected elements Return if it matches the query selector jQuery – Notice `is` also works with a function, an existing jQuery object or a DOM element, which are not of concern here . (); Wrap an HTML structure around each element Remove the parents of the set of matched elements from the DOM Replace each element in the set of matched elements with the provided new content

Fetch API is the new standard to replace XMLHttpRequest to do ajax.

Source: github.com