Skip to content

Commit b6e7c19

Browse files
Wesley-Arringtonjiegillet
authored andcommitted
Implementation Edit to Bogo Sort in Javascript (#291)
* Implementation Edit to Bogo Sort in Java
1 parent c9e1f19 commit b6e7c19

File tree

1 file changed

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

1 file changed

+8
-0
lines changed

contents/bogo_sort/code/javascript/bogo.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ function shuffle(arr) {
2222
arr[r] = tmp;
2323
}
2424
}
25+
26+
function main() {
27+
const testArray = [4, 5, 123, 24, 34, -5];
28+
bogoSort(testArray);
29+
console.log(testArray);
30+
}
31+
32+
main();

0 commit comments

Comments
 (0)