online compiler and debugger for c/c++

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

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