[ascoders] Rekursive Funktion

  • From: André Michelle <am@xxxxxxxxxxxxxxxxxx>
  • To: <ascoders@xxxxxxxxxxxxx>
  • Date: Fri, 1 Aug 2003 19:07:40 +0200

hi,


kan mir das jemand näher bringen:

var c = 0;
var func = function ( c ) {
 if ( c > 10 ) return;
 trace ( c );
 arguments.callee ( ++c );
}
func(0);

^--^

var c = 0;
var func = function ( c ) {
 if ( c > 10 ) return;
 arguments.callee ( ++c );
 trace ( c );
}
func(0);

Ausgabe1: ++ Ausgabe2: --


aM
http://www.andre-michelle.com

------------------------------------------------------
Archiv   : //www.freelists.org/archives/ascoders/
Optionen : //www.freelists.org/list/ascoders
------------------------------------------------------

Other related posts: