We are working on a new version of Javascript.info with updated content and design.

Widgets, architecture

A widget is a short for a graphical component.

The basic, worst way to create components is a plain code.

For example, let’s say we need a menu which opens on click: