Ad
  • Default User Avatar

    'abc' both ends with and begins with 'abc'

  • Default User Avatar

    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 🤷🏻‍♂️

  • Default User Avatar

    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