Skip to content

Commit 028c169

Browse files
committed
Replaced use of var with const | Bogo Sort
1 parent b61d602 commit 028c169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sorts/BogoSort.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function bogoSort (items) {
4848

4949
// Implementation of bogoSort
5050

51-
var ar = [5, 6, 7, 8, 1, 2, 12, 14]
51+
const ar = [5, 6, 7, 8, 1, 2, 12, 14]
5252
// Array before Sort
5353
console.log(ar)
5454
bogoSort(ar)

0 commit comments

Comments
 (0)