Skip to content

Instantly share code, notes, and snippets.

@debugmodedotnet
Created March 17, 2017 06:59
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 debugmodedotnet/c5af5f95df0ca6461fa497ed445f7a18 to your computer and use it in GitHub Desktop.
Save debugmodedotnet/c5af5f95df0ca6461fa497ed445f7a18 to your computer and use it in GitHub Desktop.
var foo = null;
if (foo > 9) {
console.log('greater than 9');
}
if (foo < 9) {
console.log('less than 9');
}
if (foo > -9) {
console.log('greater than -9');
}
if (foo < -9) {
console.log('less than -9');
}
if (foo == 0) {
console.log('equal to zero');
}
if (foo === 0) {
console.log('equal to zero');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment