v1
- by lshevtsov 10/22/202200
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
ary = [];

for (i = 0; i< 100; i++) {
	ary.push(i)
}

function sum(x,y) {
	return x+y
}

function nestedSum(x,y) {
	return sum(x,y)
}

function nestedTwiceSum(x,y) {
	return nestedSum(x,y)
}
delete caserun single casemove downdrag and drop case


ready




ary.reduce((acc, x) => acc + x)
delete caserun single casemove upmove downdrag and drop case


ready




ary.reduce((acc, x) => sum(acc, x))
delete caserun single casemove upmove downdrag and drop case


ready




ary.reduce((acc, x) => nestedSum(acc, x))
delete caserun single casemove upmove downdrag and drop case


ready




ary.reduce((acc, x) => nestedTwiceSum(acc, x))
delete caserun single casemove updrag and drop case


ready



ary.reduce((acc, x) => ((x,y)=>(x+y))(acc, x))
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