その中に8つの値を持つ配列があります。同じ量の値を持つ別の配列があります。これらの配列を互いに単純に差し引くことはできますか?
次に例を示します。
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..
これはどのように適切に行う必要がありますか?