My goal is to take my list and combine the first two items (0 & 1) together.
I attempted the following code:
total=foo.shift();
foo[0]=total
However, I encountered this error:
Uncaught TypeError: Object [object Array] has no method 'split'
Even when I simply tried to call "foo" without modifications, I got the same error. This indicates that the array may not be easily workable without a workaround.
Any assistance on how to overcome this issue would be greatly appreciated. Thank you.