18. Intersection of Arrays
Lesson 19 of 31 in Coddy's 30 Days of Logic Building in Javascript course.
Challenge
EasyWrite a function to find the intersection of two arrays.
- Input:
<strong>[1, 2, 3, 4, 5]</strong>,<strong>[3, 4, 5, 6]</strong> - Output:
<strong>[3, 4, 5]</strong>
Try it yourself
function arrayIntersection(arr1, arr2) {
// write your code below
}All lessons in 30 Days of Logic Building in Javascript
1Introduction
What is here for you?