Framework and Library ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Framework and Library ?

What is the difference between library and framework ? I searched on google but didn't understand. Please explain !

20th Sep 2017, 6:14 AM
Suyash Purwar
Suyash Purwar - avatar
2 Answers
+ 15
The difference lies in the flow of control. we , i.e., our code CALLS library methods but on the other hand in framework our code is being called by the framework. Take JavaScript and php example : when we do document.ready(){ function xyz (){ //code } } here 1st line is framework since it is calling our code and second line is somewhat library's method since we or our code is calling some method. I tried to keep things as simple as possible, hope it helps.
20th Sep 2017, 7:03 AM
Suresh
+ 3
Idrina thanks for your answer and your answer has simplicity ♡♡♡
20th Sep 2017, 7:55 AM
Suyash Purwar
Suyash Purwar - avatar