Skip to content

Instantly share code, notes, and snippets.

@goodbedford
Created March 31, 2016 21:35
Show Gist options
  • Save goodbedford/ea51ca35aecbb6e0c1a69a45abe62baf to your computer and use it in GitHub Desktop.
Save goodbedford/ea51ca35aecbb6e0c1a69a45abe62baf to your computer and use it in GitHub Desktop.
// relational operators compare greater than, less than, or equal to
var a = 10;
var b = 5;
// a is greater than b
console.log("a is greater than b:", a > b);
// b is not greater than a
console.log("b is greater than a:", b > a);
// b is less than a
console.log("b is less than a:", b < a );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment