Skip to content

Instantly share code, notes, and snippets.

@coreh
Created November 2, 2010 00:18
Show Gist options
  • Save coreh/659102 to your computer and use it in GitHub Desktop.
Save coreh/659102 to your computer and use it in GitHub Desktop.
It should "loop" but it only runs twice.
var sys = require('sys');
this.hey = function() {
sys.puts('hey');
setTimeout(this.hey, 2000);
};
this.hey();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment