Last active
March 3, 2018 16:05
-
-
Save realgio95/db411c6148cb15d969e87b928de5af1f to your computer and use it in GitHub Desktop.
Revisions
-
realgio95 revised this gist
Mar 3, 2018 . 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 @@ /* Sign up for YaadCode - Live FreeCode Camp Coding Sessions Twice Weekly on Skype You may join the FreeCodeCamp, Kingston Group here: https://www.facebook.com/groups/free.code.camp.kingston.jamaica/ https://www.freecodecamp.org/challenges/reverse-a-string */ -
realgio95 revised this gist
Mar 3, 2018 . 1 changed file with 0 additions and 16 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 +0,0 @@ -
realgio95 created this gist
Mar 3, 2018 .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 @@ /* Sign up for YaadCode - Live FreeCode Coamp Coding Sessions Twice Weekly on Skype You may join the FreeCodeCamp, Kingston Group here: https://www.facebook.com/groups/free.code.camp.kingston.jamaica/ https://www.freecodecamp.org/challenges/reverse-a-string */ function reverseString(str) { var chars = str.split(""); chars.reverse(); newStr = chars.join(""); return newStr; } reverseString("hello"); //Expected Output: "olleh" 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 @@ /* Sign up for YaadCode - Live FreeCode Coamp Codding Sessions Twice Weekly on Skype You may join the FreeCodeCamp, Kingston Group here: https://www.facebook.com/groups/free.code.camp.kingston.jamaica/ https://www.freecodecamp.org/challenges/factorialize-a-number */ function factorialize(num) { if (num ==1 ){ return 1; } if (num ==0) { return 1; } return num * factorialize(num-1); } factorialize(5); //Expected Output: 120