Created
December 28, 2017 12:18
-
-
Save devansvd/89a6ab17aa48976a08b960a9e19677cc to your computer and use it in GitHub Desktop.
Recursive loop syntax
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 characters
//Recursive Loop Syntax | |
function recursiveLoop(data, inputlength) { | |
if (inputlength >= 0) { | |
var currentdata = data[inputlength]; | |
inputlength = inputlength - 1; | |
recursiveLoop(data,inputlength); | |
} | |
else{ | |
//Response here | |
} | |
} | |
inputlength = data.length - 1 | |
recursiveLoop(data,inputlength); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment