diff --git a/contents/bubble_sort/code/javascript/bubble.js b/contents/bubble_sort/code/javascript/bubble.js index fd97585ee..c4f57bb8e 100644 --- a/contents/bubble_sort/code/javascript/bubble.js +++ b/contents/bubble_sort/code/javascript/bubble.js @@ -9,3 +9,11 @@ function bubbleSort(arr) { } } } + +function main() { + const testArray = [4, 5, 123, 759, -132, 8940, 24, 34, -5]; + bubbleSort(testArray); + console.log(testArray); +} + +main();