function swap(items, firstIndex, secondIndex) {
	var temp = items[firstIndex];
	items[firstIndex] = items[secondIndex];
	items[secondIndex] = temp;
}
// Swapping the value of two elements in the array that are adjacent to each other 
Swapping the value of two elements in the array that are adjacent to each other
Swapping the value of two elements in the array that are adjacent to each other
function swap(items, firstIndex, secondIndex) {
	var temp = items[firstIndex];
	items[firstIndex] = items[secondIndex];
	items[secondIndex] = temp;
}
function swap ( items , firstIndex , secondIndex ) { var temp = items [ firstIndex ] ; items [ firstIndex ] = items [ secondIndex ] ; items [ secondIndex ] = temp ; }
Swapping the value of two elements in the array that are adjacent to each other
Swapping the value of two elements in the array that are adjacent to each other