← Back to challenges

Is the Word an Isogram?

JavaScriptHardstringsvalidationloops

Instructions

An isogram is a word that has no duplicate letters. Create a function that takes a string and returns either true or false depending on whether or not it's an "isogram".

Examples

isIsogram("Algorism") ➞ true

isIsogram("PasSword") ➞ false
// Not case sensitive.

isIsogram("Consecutive") ➞ false

Notes

  • Ignore letter case (should not be case sensitive).
  • All test cases contain valid one word strings.
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Find the Highest Integer in the Array Using Recursion