JavaScript is an important component in many WordPress plugins.  WordPress comes with a variety of JavaScript libraries bundled with core. One of the most commonly-used libraries in WordPress is jQuery because it is lightweight and easy to use. jQuery can be used in your plugin to manipulate the DOM object or to perform Ajax actions.