Skip to content

Instantly share code, notes, and snippets.

@morrow
Last active December 29, 2015 00:29
Show Gist options
  • Select an option

  • Save morrow/7586430 to your computer and use it in GitHub Desktop.

Select an option

Save morrow/7586430 to your computer and use it in GitHub Desktop.
compiled javascript solution for the letsrevolutionizetesting.com code puzzle
var getNextUrl;
getNextUrl = function(url) {
if (url == null) {
url = "challenge";
}
return $.getJSON(url, function(r) {
if (r.follow) {
getNextUrl(r.follow);
}
return console.log(r);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment