A JavaScript library is a library of pre-written JavaScript code that allows for easier development of JavaScript-based applications,[1] especially for AJAX and other web-centric technologies.[2] They can be included in a website by embedding it directly in the HTML via a script tag.