Recently I have studied a lot of front-end in the vast world that is web programming and by installing some new functionality on the websites I developed I realized that some authors called their library .js and other project's plugin.
I would like to differentiate a plugin from a library and vice versa.
How much terminology is the difference between plugin and library?