Domanda di colloquio di PathFactory

When would you use a javascript framework and why?