Created
September 15, 2019 15:38
-
-
Save djD-REK/94095b89e41de76c2105ace34a3ca7a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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