Styleguide uses JavaScript to add behaviors and interactions to frontend elements.

Write your JavaScript using the ECMAScript 2015 (ES6) features. (By default, Styleguide lints JavaScript according to standard JS conventions.) To handle browser incompatibilities, Styleguide uses Babel to transpile ECMAScript 2015 to support older browsers. For information about configuring the gulp task for JavaScript, see Build Configuration.