Skip to content

Commit 41973ec

Browse files
authored
Merge pull request #505 from ut-code/format-all-code
2 parents 4df8a30 + 26b20e9 commit 41973ec

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

docs/6-exercise/1-basis-of-web/_samples/bubble-sort-pure/script.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ function bubbleSort(inputArray) {
1313
return array;
1414
}
1515

16-
17-
unsorted_array = [8, 2, 9, 14, 12, 1, 5, 13, 16, 3, 19, 17, 18, 10, 15, 7, 20, 11, 6, 4];
16+
unsorted_array = [
17+
8, 2, 9, 14, 12, 1, 5, 13, 16, 3, 19, 17, 18, 10, 15, 7, 20, 11, 6, 4,
18+
];
1819
sorted_array = bubbleSort(unsorted_array);
1920
document.write(`<p>sorted array: [${sorted_array}]</p>`);
20-
document.write(`unsorted array(shouldn't be sorted): [${unsorted_array}]`);
21+
document.write(`unsorted array(shouldn't be sorted): [${unsorted_array}]`);

docs/6-exercise/1-basis-of-web/_samples/bubble-sort/script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function bubbleSort(array) {
1212
return array;
1313
}
1414

15-
unsorted_array = [8, 2, 9, 14, 12, 1, 5, 13, 16, 3, 19, 17, 18, 10, 15, 7, 20, 11, 6, 4];
15+
unsorted_array = [
16+
8, 2, 9, 14, 12, 1, 5, 13, 16, 3, 19, 17, 18, 10, 15, 7, 20, 11, 6, 4,
17+
];
1618
sorted_array = bubbleSort(unsorted_array);
17-
document.write(`sorted array: [${sorted_array}]`);
19+
document.write(`sorted array: [${sorted_array}]`);

docs/6-exercise/1-basis-of-web/_samples/times-table/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ for (let i = 1; i <= 9; i++) {
66
}
77
document.write("</tr>");
88
}
9-
document.write("</table>");
9+
document.write("</table>");

0 commit comments

Comments
 (0)