comparing 2 array
//javascript by the davido skills
const arr1 = [1, 2, 3];
const arr2 = [1, 3, 3];
if (arr1.length !== arr2.length) return console.log("false");
let j = 0
for (let i = 0; i < arr1.length; i++) {
if (arr1[i] === arr2[j]) {
console.log("yes match", arr1[i], arr2[j]);
}
else{
console.log("no match", arr1[i], arr2[j]);
}
j++;
}
//javascript by the davido skills