15.3.1 Function as a function

2010-07-04

function Function([[p1:mixed[, p2:mixed[, ...]],] body])

When you call the Function object as a function you're creating a new function with p1..pn for args and body for code. The last given argument is always the body (can be empty). See 15.3.2 for details.