Skip to content

Instantly share code, notes, and snippets.

@callblueday
Created October 11, 2013 03:14
Show Gist options
  • Save callblueday/6929050 to your computer and use it in GitHub Desktop.
Save callblueday/6929050 to your computer and use it in GitHub Desktop.
var flag = false;
function change() {
flag = !flag
if (flag) {
// doSomething...
}
else {
// doSomething...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment