v1
10/14/2022 by poteto -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const sentinel = Symbol.for('sentinel');
let n=10;
delete caserun single casemove downdrag and drop case


ready



let a = [...new Array(n)].fill(sentinel);
delete caserun single casemove upmove downdrag and drop case


ready



let a = new Array(n).fill(sentinel);
delete caserun single casemove upmove downdrag and drop case


ready



let a = Array(n).fill(sentinel);
delete caserun single casemove upmove downdrag and drop case


ready



let a = Array.from({length: n}, () => sentinel);
delete caserun single casemove upmove downdrag and drop case


ready



let a = [...new Array(n)].map(x => sentinel);
delete caserun single casemove upmove downdrag and drop case


ready



let a = [];
a.length = n;
let i = 0;
while (i < n) {
  a[i] = sentinel;
  i++;
}
delete caserun single casemove upmove downdrag and drop case


ready



let a=[]; for(let i=0; i<n; i++) a[i]=sentinel;
delete caserun single casemove upmove downdrag and drop case


ready



let a=[]; for(let i=0; i<n; i++) a.push(sentinel);
delete caserun single casemove upmove downdrag and drop case


ready



let a = new Array(n); for (let i=0; i<n; ++i) a[i] = sentinel;
delete caserun single casemove updrag and drop case


ready



let a = new Array(n); for (let i=n; i--;) a[i] = sentinel;
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