v1
6/1/2022 by fasterthanlime -10
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
let arr = new Array(4096);
for (let i = 0; i < arr.length; i++) {
	arr[i] = i;
}
delete caserun single casemove downdrag and drop case


ready



function double(arr) {
  let result = new Array(arr.length);
  for (var i = 0; i < arr.length; i++) {
    result[i] = arr[i] * 2;
  }
  return result;
}
double(arr);
delete caserun single casemove updrag and drop case


ready



function double(arr) {
  return arr.map((x) => x * 2);
}
double(arr);
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN