Function Declaration

Function Declaration

// Function Declaration
function sum(a, b) {
  return a + b;
}
Let func = new Function ([arg1[, arg2[, ...argN] ],] functionBody)

A function, declared as a separate statement, in the main code flow.

The syntax for creating a new function.

Related concepts

Function Declaration

Function Declaration — Structure map

Clickable & Draggable!

Function Declaration — Related pages: