online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
function map(list, action) { // tworzymy pustą listę tablicową const result = []; // iterujemy po kolejnych elementach listy for (const element of list) { // dodajemy do wyniku rezultat akcji result.push(action(element)); } // zwracamy przetworzone elementy return result; } const list = [1, 2, 3, 4, 5]; console.log(map(list, (value) => value * value)); console.log(list.map((value) => value * value));

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