I am trying to learn how to compare two values between arrays with corresponding index. Like
var A = [2,12,3,42];
var B = [12,42,44,12];
So i know i need to loop in these arrays, but how do i compare two values based on index?
Like, index of [0] from A to compare with index of [0] from B, etc?