Find Common Elements — JavaScript easy interview problem
Given two arrays `a` and `b`, return an array of unique values that appear in both, in any order. Example: `commonElements([1,2,2,3], [2,3,4])` → `[2,3]` (order may vary).
Tags: set, intersection
Practice this HashMap & Set problem free in the JS Interview Playground with automated tests and unlockable solutions.