Skip to content

Instantly share code, notes, and snippets.

@aaronpowell
Created September 19, 2011 04:50
Show Gist options
  • Select an option

  • Save aaronpowell/1225982 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpowell/1225982 to your computer and use it in GitHub Desktop.
Q10 - Who shot first?
var whoShotFirst = function () {
var firstShooter;
setTimeout(function() {
if(!firstShooter)
firstShooter = 'Han';
}, 1);
setTimeout(function() {
if(!firstShooter)
firstShooter = 'Greedo';
}, 0);
setTimeout(function() { console.log(firstShooter); }, 100);
};
whoShotFirst();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment