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.
'abc' both ends with and begins with 'abc'
i have done this function and it runs as required but when doing tests it passes the empty array test but fails after that. if i do the same tests on my code on my mac/vsCode it achieves the desired result. I'm baffled 🤷🏻♂️
i got a similar solution to this but found that it would divide 'a' and 'b' if you put anything other than the other three operators instead of 'divide' 🤷🏻♂️
Put 'auntSally' there and it will divide 'a' and 'b'.
when I continued with 'divide' in the ternery the function wouldn't work so i used a 'switch' statement.
surprised there are no tests in there to find this fault