Skip to content

Instantly share code, notes, and snippets.

@Bajena
Last active July 4, 2017 21:02
Show Gist options
  • Save Bajena/c913fdb95d91c526684970237a97fab6 to your computer and use it in GitHub Desktop.
Save Bajena/c913fdb95d91c526684970237a97fab6 to your computer and use it in GitHub Desktop.
Function breakpoints - example
function myFunction() {
console.log('my func');
}
setInterval(function() {
var x = getRandomInt(0, 1);
if (x == 0) {
myFunction();
}
$('#numbers').append(x).append("<br/>");
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment