v1
10/14/2021 by vykaash -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const arr = [1,2];
const swap = (list, a, b) => {
	const temp = list[a];
	list[a] = list[b];
	list[b] = temp;
}
delete caserun single casemove downdrag and drop case


ready



swap(arr, 0, 1);
delete caserun single casemove updrag and drop case


ready



[arr[0],arr[1]] = [arr[1], arr[0]]
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