I have array listA and listB, compare and calculate the output of each list using javascript
listA=[1, 3, 5] listB=[3, 3, 2] if listA[0] > listB[0] then