A JavaScript framework is a collection of JavaScript code libraries that provide a web developer with pre-written code for routine programming tasks . Frameworks are structures with a particular context and help you create web applications within that context.