Skip to content

Commit 775022b

Browse files
committed
typo
1 parent f7ccf02 commit 775022b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

02_selection_sort/javascript/01_selection_sort.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function selectionSort(array) {
4040
}
4141

4242
const sourceArray = [5, 3, 6, 2, 10];
43-
const sourtedArray = selectionSort(sourceArray);
43+
const sortedArray = selectionSort(sourceArray);
4444

4545
console.log("Source array - ", sourceArray); // [5, 3, 6, 2, 10]
46-
console.log("New sorted array - ", sourtedArray); // [2, 3, 5, 6, 10]
46+
console.log("New sorted array - ", sortedArray); // [2, 3, 5, 6, 10]

0 commit comments

Comments
 (0)