[Contents] [Previous] [Next] [Index]

return

Specifies the value to be returned by a function.

Implemented in

Navigator 2.0, LiveWire 1.0

Syntax

return expression

Examples

The following function returns the square of its argument, x, where x is a number.

function square(x) {
   return x * x
}


[Contents] [Previous] [Next] [Index]

Last Updated: 10/31/97 12:29:59


Copyright � 1997 Netscape Communications Corporation