Last active
April 16, 2018 11:34
-
-
Save tamunoibi/dcc0a42a9bd0eb6584378632bf954b19 to your computer and use it in GitHub Desktop.
test if it works
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 isIsogram(word) { | |
if (word == "" || word <= 0) { | |
return false; | |
} | |
word.toLowerCase(); | |
var i, j; | |
for (i = 0; i < word.length; i += 1) { | |
for (j = i + 1; j < word.length; j += 1) { | |
if (word[i] == word[j]) { | |
return false; | |
} | |
} | |
} | |
return true; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment