Web features explorer

Functions

Widely available since 2018-01-29
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.

Learning resources on MDN

Browser support