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.
This will help you to visualize what your code does: https://pythontutor.com/javascript.html
You can post it, but marking your post as having spoiler content and using markdown formatting so it doesn't lose indentation and other things and it's easier to read.
Because that removes every
!
in the string. Read about regular expressions and what each flag does. Also check this out: https://docs.codewars.com/training/troubleshooting#post-discourseA problem with your code is not a kata issue, please use Question label next time, and read this first: https://docs.codewars.com/training/troubleshooting