Created
July 2, 2017 17:29
-
-
Save theWhiteFox/845d097a8bed4ac42e450bc4ddf628f9 to your computer and use it in GitHub Desktop.
Revisions
-
Ó Conchubhair ♔ created this gist
Jul 2, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ // enter a number function fibonacci(num) { var a = 1, b = 0, temp2; while(num > 0) { temp2 = a; a = a + b; b = temp2; num--; console.log(temp2); } return b; }