//JavaScript program that shows //only the first pass of the //Selection Sort algorithm. //TRY //list = new Array("Valente", "Mason", "Gibbs", "Hargrove", "Ford"); list = new Array( 40, 30, 20, 50, 15); loc = 0; //location of leftmost item i = 1; //location of first item to be compared while (i < list.length) { if (list[i] < list[loc]) loc = i; //location of first i++; } temp = list[loc]; //3 steps to swapping list[loc] = list[0]; list[0] = temp; list