Skip to content

Instantly share code, notes, and snippets.

@atomjar
Created November 14, 2016 17:50
Show Gist options
  • Save atomjar/207f958f3e9110f8f5905294a51db353 to your computer and use it in GitHub Desktop.
Save atomjar/207f958f3e9110f8f5905294a51db353 to your computer and use it in GitHub Desktop.
function compare(a, b) {
if (a > b) {
return `${a} is greater than ${b}`
} else if (b > a) {
return `${a} is less than ${b}`
} else {
return `${a} is equal to ${b}`
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment