Skip to content

Instantly share code, notes, and snippets.

@djD-REK
Created September 15, 2019 15:38
Show Gist options
  • Save djD-REK/94095b89e41de76c2105ace34a3ca7a5 to your computer and use it in GitHub Desktop.
Save djD-REK/94095b89e41de76c2105ace34a3ca7a5 to your computer and use it in GitHub Desktop.
let divisionByZero = 37 / 0;
console.log(divisionByZero); // Infinity
let divisionByEmptyString = 37 / "";
console.log(divisionByEmptyString); // Infinity
let divisionByFalsy = 37 / false;
console.log(divisionByFalsy); // Infinity
let zeroOverZero = 0 / 0;
console.log(zeroOverZero); // NaN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment