Created
March 13, 2023 13:13
-
-
Save periakteon/4e298f4e1d58b3be4c56e8b1980023b6 to your computer and use it in GitHub Desktop.
FreeCodeCamp: If Statements (Example)
This file contains hidden or 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
function test (myCondition) { | |
if (myCondition) { | |
return "It was true"; | |
} | |
return "It was false"; | |
} | |
test(true); | |
test(false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment