v1
3/20/2018 by klimcode 3/20/201800
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
var
	arr = arr = Array(1000).fill().map((e,i)=>i),
	a = 5,
    b = 6;

function swap__old (arr, a, b) {
  var temp = arr[a];
  arr[a] = arr[b];
  arr[b] = temp;
  return arr;
}
function swap__es6 (arr, a, b) {
  [arr[a], arr[b]] = [arr[b], arr[a]];
}
delete caserun single casemove downdrag and drop case


ready



swap__old (arr, a, b);
delete caserun single casemove updrag and drop case


ready



swap__es6 (arr, a, b);
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