Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript return Statement

Exits from the current function and returns a value from that function.

Syntax: JScript return Statement

return [expression];

Arguments: JScript return Statement

expression

The value to be returned from the function. If omitted, the function does not return a value.

Remarks: JScript return Statement

You use the return statement to stop execution of a function and return the value of expression. If expression is omitted, or no return statement is executed from within the function, the expression that called the current function is assigned the value undefined.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.