Created
March 9, 2018 22:59
-
-
Save DavidMellul/24479a3069b5db480beeb684995c3933 to your computer and use it in GitHub Desktop.
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
function isLongEnough(str) { // Tells if @str is 5+ characters long | |
return (str.length >= 5) ? 'What a long string':'What a short string'; | |
} | |
console.log(isLongEnough('Impressive')); | |
// => What a long string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment