Last active
August 29, 2015 14:14
-
-
Save jjcall/6b0ebf99eece0a8f3ebd to your computer and use it in GitHub Desktop.
Revisions
-
jjcall revised this gist
Jan 28, 2015 . 1 changed file with 3 additions and 3 deletions.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 @@ -1,6 +1,6 @@ function blastOff(turd) { for(turd; turd>=0; turd--) { console.log(turd); } console.log("Blast Off"); -
jjcall revised this gist
Jan 28, 2015 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,5 +1,5 @@ function blastOff(n) { for(n; n>=0; n--) { console.log(n); } -
jjcall revised this gist
Jan 28, 2015 . 1 changed file with 2 additions and 2 deletions.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 @@ -1,6 +1,6 @@ function blastOff(n) { for(n;n>=0;n--) { console.log(n); } console.log("Blast Off"); -
jjcall revised this gist
Jan 28, 2015 . 1 changed file with 2 additions and 9 deletions.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 @@ -1,16 +1,9 @@ function blastOff(n) { for(n;i>=0;i--) { console.log(i); } console.log("Blast Off"); } blastOff(4); -
jjcall renamed this gist
Jan 28, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jjcall created this gist
Jan 28, 2015 .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,16 @@ function blastOff(n) { // Check if is not 0. if( n !== 0) { // assign n to i. // subtract 1 from i while its greather than or equal to 0 for(i=n;i>=0;i--) { // log i to the console console.log(i); } // blast off after 0 is logged to the console console.log("Blast Off"); } } blastOff(4);