Skip to content

Instantly share code, notes, and snippets.

@ravinsinghd
Last active August 16, 2017 20:42
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 ravinsinghd/da69eeb601cb0a1a4b854dce29220db5 to your computer and use it in GitHub Desktop.
Save ravinsinghd/da69eeb601cb0a1a4b854dce29220db5 to your computer and use it in GitHub Desktop.
let counterLimit;
function setCounterLimit(){
counterLimit=10;
}
function validateLimit(){
if(currentValue>counterLimit){
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment