Libraries

A programming library is a big package of functions, classes and methods that solve and implement in one of the best ways possible a problem in the specific language.

A JavaScript library can be used simply by using the function require. Example:

let library = require('[libraryName]')
library.function()

That's it! Now you can use any function available from the specified library that will greatly reduce your code size, depending on what you are implementing

Frameworks

Frameworks are libraries that handles from CSS manipulation (User Interface) all the way to database management. One popular example of CSS Framework is the Bootstrap!

CDNs

JS Libraries are in most part distributed through Content Delivery Networks which are basically servers spreaded around the world that are responsible for delivering those libraries content with the lowest latency possible.

What Makes a Good Library?

Bootstrap

Bootstrap is a very popular example of framework with inner libraries in CSS & JS.

CSS Classes & JS Functions

Bootstrap contains a lot of pre-built classes into it. Ex: