Web features explorer

Functions

Widely available
Tags: javascript Groups: JavaScript

Functions are series of statements that can be called and return a value. The function keyword (as in function () { }) and arrow (=>) expression create functions. The JavaScript functions protocol includes default and rest parameters and binding to this. To learn more, see Functions at MDN.

Compatibility