From 028c16999c8546cef0deba29e61419d978cf1d13 Mon Sep 17 00:00:00 2001 From: marsonya Date: Sun, 24 Jan 2021 23:31:18 +0530 Subject: [PATCH] Replaced use of var with const | Bogo Sort --- Sorts/BogoSort.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sorts/BogoSort.js b/Sorts/BogoSort.js index 68d68edcc..bb53cc45a 100644 --- a/Sorts/BogoSort.js +++ b/Sorts/BogoSort.js @@ -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)