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.
Well I made that harder for myself.
This comment is hidden because it contains spoiler information about the solution
Can't take credit for this. I was testing the new openai chatbot and it wrote this code. A scary time to be a software engineer.
Split returns an array, filter goes through that array looking for in this case a letter, and length returns the amount of elements in that array.
Cheers. Learnt something new about forEach.
Read how
forEach
works: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEachThis comment is hidden because it contains spoiler information about the solution
Nice spot. Thanks
Not a kata issue.
I'm pretty sure this is a problem with my code as so many others have done it but this error just made me smile.
Expected a Hashtag (#) at the beginning.: expected '#DoWehaveAHashtag' to equal '#DoWeHaveAHashtag'
May or maynot be an actual issue.
I'll keep working at it. Just caught me of guard with the expeceted number. Cheers for the link.
you are missing something. kata has been completed 76,964 in js, so there's no issue
you can read this: https://docs.codewars.com/training/troubleshooting/
Failed because expected -37575660.9975 to equal 12525220.3325
Am i missinging something or is this wrong?