Ad
  • Custom User Avatar

    very nice! localeCompare() would have saved me several lines.

  • Custom User Avatar

    Very nice, I learned something about .every() thanks to this solution.

  • Custom User Avatar

    You are returning true inside your for loop, assuming your code aboe was a copy and paste. This would mean you are only ever going to iterate once, effectively only checking for the letter 'a' before returning either false or true.

  • Custom User Avatar

    This was a clever way to look into the different types of equality javascript is capable of calculating. I was initially stuck with the same test fail that many others are reporting; but luckily had recently encountered this difficulty on a web app I am working on. I was able to pass all tests successfully.