JavaScript (or JS for short) is a scripting language used to make HTML content in­ter­ac­tive in the web browser. This language can be used for both object-ori­en­tat­ed pro­gram­ming as well as pro­ce­dur­al and func­tion­al pro­gram­ming. JavaScript contains pre­de­fined objects (i.e. data elements with special prop­er­ties, methods, or functions) for accessing a web page, but they are sometimes cum­ber­some to use. To help users in writing JS, collected in­for­ma­tion has been made public. These in­struc­tions and tools come in the form of various JavaScript libraries and frame­works, with the aim to make pro­gram­ming easier. We will go through the best and most well-known tools below.

Library vs. framework

It’s important to keep the two terms separate. Often 'library' and 'frame­work' are used as synonyms even though this is wrong, strictly speaking. Even though the tran­si­tion is seamless in many ways, there are basic dif­fer­ences between the two of them.

Library

A JavaScript library is a library of pre-written JavaScript that enables an easier de­vel­op­ment of JavaScript-based ap­pli­ca­tions. Libraries always ac­com­mo­date sub­pro­grams which, along with support functions, help with the pro­gram­ming process. In contrast to a framework, a library is more developed to one par­tic­u­lar use, meaning it has functions that are co­or­di­nat­ed to each other. For example, the JavaScript library D3.js is used for data vi­su­al­iza­tion – with this library you can implement small tables, diagrams, and sta­tis­tics, as well as more complex graphs (including an­i­ma­tions and in­ter­ac­tions). Libraries are always in­te­grat­ed by a software program: the program accesses the cor­re­spond­ing functions of a program library when they need a specific function. As a result, libraries can only work within a program and can’t run in­de­pen­dent­ly.

Framework

A framework is also not an au­tonomous program, but rather a special form of class library. A framework provides the software ar­chi­tec­ture (i.e. the basic structure) of an ap­pli­ca­tion and es­sen­tial­ly de­ter­mines the de­vel­op­ment process. Frame­works have certain design patterns with different functions (often in the form of many libraries) and are used to develop new, in­de­pen­dent ap­pli­ca­tions. An example is the Zend framework for PHP, which is used in Magento’s online store software and web analytics tool Piwik.

Inversion of Control (IoC)

Another dif­fer­ence between a framework and a library is how they are managed. With libraries, the code is accessed by pro­gram­mers through a software program’s pro­gram­ming interface. Frame­works, however, carry out an inversion of control: The code is embedded in fixed struc­tures and called up when needed. To summarize, you can say that libraries are called up by programs, whereas frame­works make spec­i­fi­ca­tions to the program.

JavaScript libraries and frame­works

The core of JavaScript is a rather simple pro­gram­ming language that lends itself par­tic­u­lar­ly well for use within a browser. Many pro­gram­mers face problems with their website interface, or DOM (Document Object Model). Here JavaScript frame­works and libraries come into play, making work a little bit easier for de­vel­op­ers, re­gard­less of their pro­gram­ming field. The JavaScript ex­ten­sions in­tro­duced in the next section can all be down­loaded for free.

Popular JavaScript libraries

JavaScript libraries are reusable codes through which certain features and functions for a website are assigned. jQuery is the most well-known JavaScript library and offers many useful features, although other libraries can be just as helpful.

jQuery

The very extensive jQuery library is the most-used JavaScript library. This is due to the fact that you can write simple cross-browser jQuery code, with lots of plugins available for use. jQuery’s open source library is part of many content man­age­ment systems like WordPress, Drupal, or Joomla!. jQuery also functions as an interface for DOM, offering some of the following functions: CSS3 selectors make it easy to select and ma­nip­u­late website elements. jQuery is also par­tic­u­lar­ly valued for its ability to integrate Ajax requests (HTTP requests without reloading the website).

Ad­van­tages Dis­ad­van­tages
Ajax support Can be slow compared to CSS
Very popular Leans toward spaghetti code
Extensive library Is quite su­per­flu­ous due to new JavaScript features
Easy to use  
Numerous plugins  

jQuery UI

jQuery UI is a free extension for jQuery. Its purpose is to define and implement a user interface (UI) from sources like websites or web apps. The focus here is on simple design and in­ter­ac­tions. The functions jQuery has to offer include the pos­si­bil­i­ty to implement in­ter­ac­tive elements (e.g. drag and drop, zooming in and out), an­i­ma­tions, effects, and widgets (like au­to­com­plete, sliders, date picker, etc.). The graphic editor, The­meRoller, can be used to create original themes, or existing themes can be used to adapt for your own purposes. True to its simple design con­fig­u­ra­tion, the modular structure of The­meRoller allows only the necessary com­po­nents to be im­ple­ment­ed.

Ad­van­tages Dis­ad­van­tages
Easy operation due to widgets Slow de­vel­op­ment
The­meRoller Requires jQuery

Dojo Toolkit

The Dojo Toolkit is good for im­ple­men­tat­ing web ap­pli­ca­tions and dynamic web content. As one of the oldest JavaScript libraries that is still relevant on the market, it offers a wide range of functions – the most important com­po­nents of the toolkit are the main program (Dojo), and Dijit, a toolkit for graphical user in­ter­faces. In addition, you can use pre-defined widgets to integrate elements into the website you are creating. Dojo can also handle both DOM and Ajax.

Ad­van­tages Dis­ad­van­tages
Easy operation due to widgets Not so easy to learn
Ajax support Slow de­vel­op­ment
Extensive, modular library  

React

React was first used in 2011 in Facebook’s newsfeed. It was then released on an open source basis in 2013. It is another JavaScript library with which you can create user in­ter­faces. What sets this library apart from the rest is that the website elements (views) aren’t solely rendered on the client, but also on the server – which makes a more powerful rendering possible. This is due to the use of virtual DOMs, which also makes the testing of web ap­pli­ca­tions easier. In addition, the JavaScript library scores with many de­vel­op­ers because of its one direction data flow: This tech­nol­o­gy ensures stable code since changes in lower-level code cannot influence the higher-level code. Changes can only have an impact in the other direction.

Ad­van­tages Dis­ad­van­tages
Virtual DOM Hard to learn
One-way data flow  
Server-side rendering  
Ap­plic­a­ble for mobile apps  

Zepto

Zepto is a real light­weight: While jQuery is im­pres­sive for its size, it is also a factor that deters many de­vel­op­ers. The best-known JavaScript library is too bulky for some users. The min­i­mal­is­tic Zepto is much slimmer, should load faster and take up less space, which is why it is mainly used for mobile apps. In order to keep the file size small, Zepto saves on com­pat­i­bil­i­ty with older browsers. To make Ajax and an­i­ma­tions possible, you also have to use ad­di­tion­al modules.

Ad­van­tages Dis­ad­van­tages
Very slimline Doesn’t support older browsers
Easy to learn Ajax and an­i­ma­tions only possible using ad­di­tion­al modules
  No extra ad­van­tages compared to jQuery

CreateJS

Not just one, but several libraries: CreateJS is a suite con­sist­ing of four different libraries: EaselJS (graphics & in­ter­ac­tiv­i­ty), TweenJS (an­i­ma­tions), SoundJS (audio), and PreloadJS (pre­load­ing). These are not in­ter­de­pen­dent. This means that you don’t have to implement all four libraries in one project if you happen to only need one library, for example. There are also some tools to make it easier to work with JavaScript libraries. The focus is on the de­vel­op­ment of HTML5 and Flash ap­pli­ca­tions. In general, the CreateJS team works closely with Adobe, which is why there are tools to ensure that the suite works seam­less­ly with Adobe products.

Ad­van­tages Dis­ad­van­tages
In­de­pen­dent libraries Small community
Ad­di­tion­al tools  
In­te­gra­tion in Adobe Animate  

JavaScript libraries at a glance

  jQuery jQuery UI Dojo Toolkit React Zepto CreateJS
Year of release 2006 2007 2005 2013 2010 2012
Operator JS Foun­da­tion JS Foun­da­tion Dojo Foun­da­tion Facebook Thomas Fuchs gskinner.com
License MIT MIT BSD/AFL MIT MIT MIT
GitHub con­trib­u­tors approx. 270 approx. 300 approx. 100 approx. 1,100 approx. 180 approx. 40
Special features Best-known library Focus on GUI Focus on web apps Virtual DOM Min­i­mal­is­tic In­te­gra­tion in Adobe Animate

Popular JavaScript frame­works

There are con­sid­er­ably more JavaScript libraries than frame­works. The latter are es­pe­cial­ly suitable for complex web ap­pli­ca­tions. If de­vel­op­ers embrace the concepts and spec­i­fi­ca­tions of re­spec­tive frame­works, they will be able to work very ef­fi­cient­ly with them.

AngularJS

This Google-main­tained framework has by far the largest community among the JavaScript frame­works. AngularJS is used (like its main com­peti­tor: Facebook’s library, React) to create single page web ap­pli­ca­tions (web apps, which consist only of HTML documents). Due to the MVVM concept (model-view-viewmodel) of this framework, web ap­pli­ca­tions can be developed that are highly adaptable to user in­ter­ac­tion. (The man­u­fac­tur­ers of the JS framework, however, prefer to cat­e­go­rize AngularJS as MVW: model-view-whatever). Here AngularJS renders the web ap­pli­ca­tion on the client side. The framework is based on jQuery Lite – a slimmed-down version of the well-known JavaScript library, jQuery.

Ad­van­tages Dis­ad­van­tages
Very large community Has been replaced by Angular
Part of the MEAN software stack Com­pli­cat­ed initial hurdles

Angular

Angular – sometimes also called Angular 2 – is the successor of AngularJS. The JS framework is still primarily intended for the de­vel­op­ments of single-page web ap­pli­ca­tions. However, Google has made some very big changes in the second version. The biggest dif­fer­ence is probably that JavaScript is no longer used for pro­gram­ming, but rather Type­Script is. However, since Microsoft’s pro­gram­ming language is based on JavaScript, it doesn’t result in a direct re­stric­tion when it comes to JS de­vel­op­ment. In addition, Angular has now been adapted so that the de­vel­op­ment of ap­pli­ca­tions across multiple platforms (desktop, mobile, tablet) is no problem.

Ad­van­tages Dis­ad­van­tages
More pos­si­bil­i­ties thanks to Type­Script Not easy migrating from AngularJS to Angular
Cross-platform de­vel­op­ment Initial hurdles more com­pli­cat­ed than with the pre­de­ces­sor

Ember.js

Ember.js is also a client-side framework that is used for im­ple­ment­ing single page web ap­pli­ca­tions, with which you can also create desktop ap­pli­ca­tions. A further dis­tin­guish­ing feature is that the creators of Ember.js in­ten­sive­ly involve the community in the framework’s de­vel­op­ment process; for instance, dis­cussing sig­nif­i­cant framework changes with them before they are im­ple­ment­ed. Ember.js is marketed as a framework for creating ambitious web ap­pli­ca­tions – so it is primarily aimed at de­vel­op­ers who already have ex­pe­ri­ence with designing web ap­pli­ca­tions.

Ad­van­tages Dis­ad­van­tages
Developed by the open source community Very demanding, es­pe­cial­ly for beginners
Can also be used for desktop ap­pli­ca­tions  

Vue.js

Vue.js is also a JavaScript framework for de­vel­op­ing single-page web ap­pli­ca­tions rem­i­nis­cent of Angular and React. The de­vel­op­ers of this rel­a­tive­ly young and ambitious project de­lib­er­ate­ly designed Vue.js in such a way that beginners find it rel­a­tive­ly easy to get started. For example, it’s possible to integrate templates into HTML. In addition, Vue.js is also said to be much more flexible than many other frame­works, which usually strictly dictate the way the framework is handled.

Ad­van­tages Dis­ad­van­tages
Quick to learn Less complex
Supports HTML & CSS Com­par­a­tive­ly small community
Flexible de­vel­op­ment pos­si­bil­i­ties  

Meteor

Meteor – sometimes called MeteorJS – is a JS framework that is par­tic­u­lar­ly well suited for cross-platform de­vel­op­ment. It enables de­vel­op­ers to create both web ap­pli­ca­tions and mobile apps with the same code. Another advantage is that changes in the code can be forwarded directly to clients thanks to the specially developed Dis­trib­uted Data Protocol (DDP). In addition to the free framework, the man­u­fac­tur­ers of Meteor also offer Galaxy, which is a paid platform. De­vel­op­ers can use the cloud service to publish and host their projects. The JavaScript framework runs on a Node.js basis so it makes sense to know a bit about the de­vel­op­ment en­vi­ron­ment when de­vel­op­ing with Meteor. Meteor enables you to create both backend and frontend at the same time without changing the language – a rev­o­lu­tion­ary concept that has not yet become es­tab­lished.

Ad­van­tages Dis­ad­van­tages
Cross-platform de­vel­op­ment Works only with MongoDB and not with other database types
Hosting platform Galaxy Backend migration required
Can be combined with Angular, React, and other frame­works/libraries Problems with search engine and per­for­mance

JavaScript frame­works at a glance

  AngularJS Angular Ember.js Vue.js Meteor
Year of release 2009 2016 2011 2014 2012
Operator Google Google Ember Core Team Evan You Meteor De­vel­op­ment Group
License MIT MIT MIT MIT MIT
GitHub con­trib­u­tors Approx. 1.600 Approx. 570 Approx. 700 Approx. 700 Approx. 370
Ar­chi­tec­ture MVVM/MVW MVC MVVM MVVM MVVM
Special features Can also be used for mobile and desktop apps Can also be used for mobile and desktop apps Can also be used for desktop apps Easy in­te­gra­tion Combined backend and frontend

Useful tools for many areas

Frame­works and libraries can con­sid­er­ably smooth the JavaScript pro­gram­ming process. Those mentioned above are only a small portion of the tools that are available. Ad­di­tion­al resources for JavaScript frame­works, libraries, and plugins include GitHub and JavaScript­ing. Here you can find suitable JavaScript ex­ten­sions for various purposes.

Go to Main Menu