Created
March 4, 2016 21:03
-
-
Save edrohler/276180eae493f41fbff3 to your computer and use it in GitHub Desktop.
Revisions
-
edrohler created this gist
Mar 4, 2016 .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,9 @@ var myArray = [1, 2, 3, 4, 5]; function revArray(arr) { var nArrr = new Array(); for (var i = 0; i <= arr.length; i++) { nArrr.push(arr[arr.length - i]); console.log(nArrr[i]); } }