v1
- by lamik 12/4/202000
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
let arr=[...Array(1000000)].map((x,i)=>i);
let obj={};
delete caserun single casemove downdrag and drop case


ready



function A(a,o) {
  a.push(o);
  return a;
}

A(arr,obj);
delete caserun single casemove upmove downdrag and drop case


ready



function B(a,o) {
  a[a.length] = o;
  return a;
} 

B(arr,obj);
delete caserun single casemove upmove downdrag and drop case


ready



function C(a,o) {
  return a.concat(o);
}

C(arr,obj);
delete caserun single casemove upmove downdrag and drop case


ready



function D(a,o) {
  return [...a,o];
}

D(arr,obj);
delete caserun single casemove upmove downdrag and drop case


ready



function E(a,o) {
  const frozenObj = Object.freeze(o);
  return Object.freeze(a.concat(frozenObj));
}

E(arr,obj);
delete caserun single casemove updrag and drop case


ready



function F(a,o) {
  a.unshift(o);
  return a;
} 

F(arr,obj);
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