Functions

Function argument

Try the free JavaScript compiler

An argument is a supplied value, distinct from the parameter name in the definition. Arguments are evaluated at call time. Missing ordinary parameters receive undefined; extra values are permitted.

Formal Syntax & Structure

javascript syntaxjavascript
f(value)

Working Example

Example Snippetjavascript
function f(a,b) { console.log(a,b); }f(5);
JavaScript Reference