From 775022b848df1b0afb9145363ec0145eab7a92e7 Mon Sep 17 00:00:00 2001 From: Aditya Bhargava Date: Fri, 22 Mar 2024 15:10:42 -0500 Subject: [PATCH] typo --- 02_selection_sort/javascript/01_selection_sort.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_selection_sort/javascript/01_selection_sort.js b/02_selection_sort/javascript/01_selection_sort.js index c9cf695..ba3ed7a 100644 --- a/02_selection_sort/javascript/01_selection_sort.js +++ b/02_selection_sort/javascript/01_selection_sort.js @@ -40,7 +40,7 @@ function selectionSort(array) { } const sourceArray = [5, 3, 6, 2, 10]; -const sourtedArray = selectionSort(sourceArray); +const sortedArray = selectionSort(sourceArray); console.log("Source array - ", sourceArray); // [5, 3, 6, 2, 10] -console.log("New sorted array - ", sourtedArray); // [2, 3, 5, 6, 10] +console.log("New sorted array - ", sortedArray); // [2, 3, 5, 6, 10]