Pregunta de entrevista de PathFactory

When would you use a javascript framework and why?