Ad
  • Custom User Avatar

    Good kata, but the tests are sometimes confusing and it's not clear what the problem is.

  • Default User Avatar

    Decent enough solution, but readability isnt great, you could have formatted it in an easier to read style but nested ternaries are always hard to read properly.

    something like this perhaps
    return operation === "+"
    ? value1 + value2
    : operation === "-"
    ? value1 - value2
    : operation === "*"
    ? value1 * value2
    : operation === "/"
    ? value1 / value2
    : false;

  • Custom User Avatar

    Бро, я минут 10 пытался понять что от меня хотят, так что то, что ты тут написал является адекватной реакцией на задание