Check if three arrays contains the same element
Do 3 arrays contain a common element, if they contain output it. For example: [1,2,3], [2,3], [2,4] -> answer = 2 let arr1 = [1, 3, 11, 32, 44, 99]; let arr2 = [4, 12, 15, 99]; let arr3 = [4, 11, 13, 15, 23, 43]; function searchThreeSameNum(arr1, arr2, arr3) { let i = 0; … Read more