Changes

Jump to navigation Jump to search
62 bytes added ,  19:31, July 18, 2011
ref
Line 1: Line 1: −
The '''return''' statement tells a function, subroutine or method to stop running and "return" control to its caller. In Java and most other languages, no other lines of programming code may follow a return statement, since they could not possibly be executed. The typical compiler therefore labels this a coding error. But in PHP it is allowed.<!-- I'm not sure about JavaScript. -->
+
The '''return''' statement tells a function, subroutine or method to stop running and "return" control to its caller.[http://www.golivecentral.com/pages/txttut/jstut/return.shtml] In Java and most other languages, no other lines of programming code may follow a return statement, since they could not possibly be executed. The typical compiler therefore labels this a coding error. But in PHP it is allowed.<!-- I'm not sure about JavaScript. -->
    
[[category:Computer Programming]]
 
[[category:Computer Programming]]
Siteadmin, Check users, nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW, oversight, Administrators
30,650

edits

Navigation menu