bubbleSort.js
// Test the createIntegerArray, printArray, and bubbleSort functions.
Test the createIntegerArray, printArray, and bubbleSort functions.
Test the createIntegerArray printArray and bubbleSort functions .
function testFour() {
	var array = createIntegerArray(20);
	printArray(array, "testArea");
	var results = bubbleSort(array);
	printArray(results[0], "testArea");
}
function testFour ( ) { var array = createIntegerArray ( 20 ) ; printArray ( array , "testArea" ) ; var results = bubbleSort ( array ) ; printArray ( results [ 0 ] , "testArea" ) ; }
Test the createIntegerArray, printArray, and bubbleSort functions.
Test the createIntegerArray printArray and bubbleSort functions .
// Print the unsorted array. // Sort the array and gather statistics. // Print the array after it has been sorted.