Skip to content

Commit 6fa1761

Browse files
Wesley-Arringtonjiegillet
authored andcommitted
Implementation Edit to Bubble Sort in Javascript (#292)
* Implementation Edit to Bubble Sort in Javascript
1 parent b6e7c19 commit 6fa1761

File tree

1 file changed

+8
-0
lines changed
  • contents/bubble_sort/code/javascript

1 file changed

+8
-0
lines changed

contents/bubble_sort/code/javascript/bubble.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@ function bubbleSort(arr) {
99
}
1010
}
1111
}
12+
13+
function main() {
14+
const testArray = [4, 5, 123, 759, -132, 8940, 24, 34, -5];
15+
bubbleSort(testArray);
16+
console.log(testArray);
17+
}
18+
19+
main();

0 commit comments

Comments
 (0)