HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

Functions

Description

The Functions of Functions for JS are a pieces of code that execute when called.

They allow code to be written once and used many times.

Information may, or may not, be passed to the function and information may, or may not, be returned from the function.

Syntax

function name(variable1, variable2, ...)
{
    code
}

Examples

1 · No Pass · No Return

2 · No Pass · Return

3 · Pass · No Return

4 · Pass · Return