XOR Strings 3

  • + 0 comments

    It says it has to be resolved in one line "you cannot add or remove lines to the code."

    So this was my solution in Javascript, anyway I'm facing the same issue as everyone, it's broken: return input = chunk.split('\n')[0] ^ chunk.split('\n')[1];