Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx65
var assert = require('assert');function intersection(nums1, nums2) { // fill this in return [];}try { assert.deepEqual(intersection([6, 0, 12, 10, 16], [3, 15, 18, 20, 15]), []); console.log( 'PASSED: `intersection([6,0,12,10,16],[3,15,18,20,15])` should return `[]`' );} catch (err) { console.log(err);}try { assert.deepEqual(intersection([1, 5, 2, 12, 6], [13, 10, 9, 5, 8]), [5]); console.log( 'PASSED: `intersection([1,5,2,12,6],[13,10,9,5,8])` should return `[5]`' );} catch (err) { console.log(err);}OUTPUT
Results will appear here.