Here is a comparison of two famous developing tools.
(A framework and a library differ related to the control. If you are using a library, you are the commander of the flow of the application, yet if you are using a framework then the framework will be the commander to control the flow of application)