I wasn't too sure if the array needed to be in the correct operation order. Unlike python, js for loops arbitrarily order the input, I think?