mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
add console printing for after sorting
This commit is contained in:
@ -27,6 +27,7 @@ console.log("-----before sorting-----")
|
|||||||
console.log(ar);
|
console.log(ar);
|
||||||
bubbleSort(ar);
|
bubbleSort(ar);
|
||||||
//Array after sort
|
//Array after sort
|
||||||
|
console.log("-----after sorting-----")
|
||||||
console.log(ar);
|
console.log(ar);
|
||||||
|
|
||||||
/*alternative implementation of bubble sort algorithm.
|
/*alternative implementation of bubble sort algorithm.
|
||||||
|
Reference in New Issue
Block a user