StefiIOE

2.2

Nov 25th, 2020
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // TODO: write the function;
  2. var first  = 0 ;
  3. var second = 1 ;
  4. var fib_next = function ()  //...
  5. {
  6.   var tmp = first;
  7.   var tmp1 = second;
  8.   first = second;
  9.   second = tmp1 + tmp;
  10.   return tmp1;
  11.  
  12. };
  13. fib_next();
  14.    
  15.  
  16.  
RAW Paste Data