1//javascript by the davido skills
2const arr1 = [1, 2, 3];
3const arr2 = [1, 3, 3];
4
5if (arr1.length !== arr2.length) return console.log("false");
6let j = 0
7for (let i = 0; i < arr1.length; i++) {
8 if (arr1[i] === arr2[j]) {
9 console.log("yes match", arr1[i], arr2[j]);
10 }
11 else{
12 console.log("no match", arr1[i], arr2[j]);
13 }
14 j++;
15}
16//javascript by the davido skills
1const arr1 = [1, 2, 3];
2const arr2 = [1, 3, 3];
3
4if (arr1.length !== arr2.length) return console.log("false");
5for (let i = 0; i < arr1.length; i++) {
6 for (let j = 0; j < arr2.length; j++) {
7 if (arr1[i] === arr2[j]) {
8 console.log("yes match", arr1[i], arr2[j]);
9 continue;
10 }
11 console.log("no match", arr1[i], arr2[j]);
12 }
13}