Fixed the issue when the length of the array was an odd number. When calculating the index corresponding to the middle of the array, a parseInt was missing, so the number being added was a float, changing the value of the result in the addition.
Fixed the issue when the length of the array was an odd number. When calculating the index corresponding to the middle of the array, a parseInt was missing, so the number being added was a float, changing the value of the result in the addition.

denjalonso/coding-interview-js