Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
thank you :)
You should return the answer not print it to the console.
Did anyone had the same problem? the script seems to work on codepen but when I put it here everything goes 'undefined' I've added a line to catch the console log and the results are the log is the same as "expected" by codewars.. not sure what I should do. :)
Log
true
Expected: 'true', instead got: 'undefined'
Log
false
same chars may not be adjacent - Expected: 'false', instead got: 'undefined'
Log
false
same chars may not be same case - Expected: 'false', instead got: 'undefined'
Log
false
Expected: 'false', instead got: 'undefined'
Log
true
an empty string is a valid isogram - Expected: 'true', instead got: 'undefined'