I have an array with eight values inside it. I have another array with the same amount of values. Can I simply substract these arrays from each other?
Here is an example:
var firstSet =[2,3,4,5,6,7,8,9]
var secondSet =[1,2,3,4,5,6,7,8]
firstSet - secondSet =[1,1,1,1,1,1,1,1] //I was hoping for this to be the result of a substraction, but I'm getting "undefined" instead of 1..
How should this be done properly?