online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
function intersection(first, second) { // wyciągamy z pierwszej tablicy elementy, // które znajdują się w drugiej return first.filter(x => second.includes(x)); } // deklarujemy trzy tablice const A = [1, 3, 5]; const B = [2, 4, 5]; const C = [6, 7, 8]; // wypisujemy rezultat użycia funkcji intersection() console.log(intersection(A, B)); // [ 5 ] console.log(intersection(A, C)); // []

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue