Interview Questions Flashcards

1
Q

What is the difference between a library and a framework?

A

Frameworks are a subset of libraries and the main difference is the inversion of control.

Frameworks define functions but never call them

Functions that are called and use own code then it is a library

Example: DOM is a framework

How well did you know this?
1
Not at all
2
3
4
5
Perfectly