jQuery

AJAX

SPA & MPA

TS

Angular


JavaScript Library vs. JavaScript Framework

Software developers often use the words library and framework. Both contain reusable codes that someone else has written, tested, and proven to be used.

Let’s try to understand what these libraries and frameworks are.

What is a library?

A library is a prewritten set of codes that can be reused. Libraries give useful functions, methods, or objects. You can use them in your application code. Whenever necessary you don't need to rewrite the codes from scratch. You can just use the library to get used to the method.

Eg: There’s a method ‘findInverse(String)’  in a particular library. It will return the inverse of the word that we give. We can straightway call this method in the library whenever we need an inverse of a particular word. We do not need to write the whole logic behind this method everywhere we need that functionality.

Now let us see what a JavaScript library is.

JavaScript libraries

JavaScript libraries are written in JavaScript. There are dozens of JavaScript libraries available. Normally these libraries are focusing on some narrow scope.

Let’s have a look at specific functions where JavaScript libraries are been used.