A JavaScript library can be considered as a library of pre-written JavaScript which helps developers to easily develop JavaScript-based applications, especially for AJAX and other web-centric technologies.