Last active
February 28, 2018 05:01
-
-
Save jaamaalxyz/30fd13752770f83edca70aa8334c6ddd to your computer and use it in GitHub Desktop.
This file contains 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
var num1 = 30; | |
var num2 = 5 / 0; // will return Infinity | |
var num3 = -5 / 0; // will return -Infinity | |
let x = 20 / "Shark"; // Will return NaN | |
const PI = 3.14; | |
console.log(num1); // Output: 30 | |
console.log(num2); // Output: Infinity | |
console.log(num3); // Output: -Infinity | |
console.log(x); // Output: NaN | |
console.log(PI); // Output: 3.14 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment