Created
January 8, 2020 07:33
-
-
Save ABooooo/aaa74c9e0e2f8e4d26d9a7d44e5b6133 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
outerloop: | |
for (i = 0; i < a.length; i++) { | |
for (j = 0; j < b.length; j++) { | |
console.log(a[i] + ' compare with ' + b[j]); | |
if (a[i] === b[j]) { | |
continue outerloop; | |
} | |
} | |
console.log('ERROR no match'); | |
break outerloop; | |
} | |
// switch a and b to compare values in correct order |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment