Skip to content

Instantly share code, notes, and snippets.

@Serhansolo
Created March 30, 2020 22:45
Show Gist options
  • Save Serhansolo/bc862a2548d6a8be8610704ed7df9ee9 to your computer and use it in GitHub Desktop.
Save Serhansolo/bc862a2548d6a8be8610704ed7df9ee9 to your computer and use it in GitHub Desktop.
switch (err) {
case LESS_THAN_ZERO:
case TOO_MANY:
case NOT_A_NUMBER:
console.log("Oops an error occured.");
break;
default:
console.log(fruitStand.numFruits);
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment