Skip to content

Instantly share code, notes, and snippets.

@q42jaap
Last active January 27, 2016 15:31
Show Gist options
  • 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