Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created January 1, 2018 22:31
Show Gist options
  • Save ryanckulp/da3c5a1db02dfd502fe868d83f3af025 to your computer and use it in GitHub Desktop.
Save ryanckulp/da3c5a1db02dfd502fe868d83f3af025 to your computer and use it in GitHub Desktop.
if/else example in JavaScript
var x = 4;
if (x == 4) {
console.log("Correct!");
} else {
console.log("Incorrect!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment