Ad
  • Custom User Avatar

    Your solution is not exactly correct tho. I think you got confused with the surrounding quotes, you should not add them.

  • Custom User Avatar

    The same for me. I am sure I did the right solution. I get neccessary results in my mac/vs but here there are mistakes always.

  • Custom User Avatar

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

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

  • Custom 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