Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to do an isogram in javascript

function isIsogram(sWord)
 {
  for (iCharIndex = 0; iCharIndex < sWord.length; iCharIndex++)
    if (sWord.substring(iCharIndex + 1).includes(sWord.charAt(iCharIndex)))
      return false;
  return true;
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #isogram #javascript
ADD COMMENT
Topic
Name
5+6 =