Skip to content

Instantly share code, notes, and snippets.

@q42jaap
Last active January 27, 2016 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save q42jaap/90ee8aaf04520669a866 to your computer and use it in GitHub Desktop.
Save q42jaap/90ee8aaf04520669a866 to your computer and use it in GitHub Desktop.
'use strict';
var i = 0;
console.log('starting app');
setInterval(function() {
i++;
console.log('simulate activity');
if (i > 5) {
doesNotExist = 0; // this will throw ReferenceError: doesNotExist is not defined
}
}, 1000);
{
"main": "index.js",
"devDependencies": {
"nodemon": "^1.8.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment