Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(firstArray, secondArray) {
- for (let i = 0; i < firstArray.length; i++ ) {
- for (let j = 0; j < secondArray.length; j++ ) {
- if (firstArray[i] === secondArray[j]) {
- console.log(firstArray[i]);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement