Created
January 1, 2018 22:31
-
-
Save ryanckulp/da3c5a1db02dfd502fe868d83f3af025 to your computer and use it in GitHub Desktop.
if/else example in JavaScript
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 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