Skip to content

Instantly share code, notes, and snippets.

@arselzer
Created February 25, 2014 08:56
Show Gist options
  • Save arselzer/9205315 to your computer and use it in GitHub Desktop.
Save arselzer/9205315 to your computer and use it in GitHub Desktop.
How to loop in node.js.
var fs = require("fs");
if (typeof(i) === "undefined")
i = 0;
var self = fs.readFileSync(__filename).toString();
console.log("Hello", i);
i++;
eval(self);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment