Hello there!
I have some numbers (cost prices of items) in an array which are the values shown under the price column. So at the click of a button, the sum of all the numbers in the array as shown in the alert box in the screenshot below needs to be calculated and displayed where the “$0” is shown in the screenshot below. However, this does not seem to happen. I have tried the “SUM” method, “SUM_BY_KEY” method and also just simply adding the first and 2nd element of the array which also doesn’t work. Can someone please help me with this?
Thanks in advance!