Replaced use of var with const | Bogo Sort

This commit is contained in:
marsonya
2021-01-24 23:31:18 +05:30
parent b61d6020a1
commit 028c16999c

View File

@ -48,7 +48,7 @@ function bogoSort (items) {
// Implementation of bogoSort
var ar = [5, 6, 7, 8, 1, 2, 12, 14]
const ar = [5, 6, 7, 8, 1, 2, 12, 14]
// Array before Sort
console.log(ar)
bogoSort(ar)