v1
- by pushkine 6/3/202100
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
class Foo {
	e = Math.random();
	constructor(i){this.i = i;}
}
class Leet {
	q = Math.random();
}
class Bar extends Foo {
	o = new Leet();
}
//const arr = Array.from({length: 33},(_,i)=>({ e: Math.random(), i, o: { q: Math.random() } }));
const arr = Array.from({length: 300},(_,i)=>new Bar(i));
let r = 0;
delete caserun single casemove downdrag and drop case


ready



for (let j = 0; j < arr.length; j++) {
	r += arr[j].o.q;
	r *= arr[j].e;
	r -= arr[j].o.q * r + arr[j].i - arr[j].e;
}
delete caserun single casemove upmove downdrag and drop case


ready



for (let j = 0; j < arr.length; j++) {
	const obj = arr[j];
	const e = obj.e;
	const q = obj.o.q;
	const i = obj.i;
	r += q;
	r *= e;
	r -= q * r + i - e;
}
delete caserun single casemove upmove downdrag and drop case


ready



for (let j = 0; j < arr.length; j++) {
	const obj = arr[j];
	const o = obj.o;
	r += o.q;
	r *= obj.e;
	r -= o.q * r + obj.i - obj.e;
}
delete caserun single casemove updrag and drop case


ready



for (let j = 0; j < arr.length; j++) {
	const {e,i,o:{q}} = arr[j];
	r += q;
	r *= e;
	r -= q * r + i - e;
}
Test Case - click to add another test case
disable teardown JavaScript
teardown JavaScript
arr.forEach(v=>v.e=--r)
Output (DOM) - click to monitor output (DOM) while test is running
RUN