• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

6.15. return

As you'll recall, invoking a function with the ( ) operator is an expression. All expressions have values; the return statement is used to specify the value returned by a function. This value is the value of the function invocation expression. The syntax of the return statement is:

return expression;


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint