Skip to content

Commit 4e8bdd3

Browse files
authored
Merge branch 'main' into coursework/sprint-3-implement-and-rewrite
2 parents eaeb7f7 + b31a586 commit 4e8bdd3

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

Sprint-1/2-mandatory-errors/4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
const 12HourClockTime = "20:53";
2-
const 24hourClockTime = "08:53";
1+
const 12HourClockTime = "8:53pm";
2+
const 24hourClockTime = "20:53";

Sprint-2/4-mandatory-interpret/time-format.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
function pad(num) {
2-
return num.toString().padStart(2, "0");
2+
let numString = num.toString();
3+
while (numString.length < 2) {
4+
numString = "0" + numString;
5+
}
6+
return numString;
37
}
48

59
function formatTimeDisplay(seconds) {

Sprint-3/2-practice-tdd/repeat-str.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
function repeatStr() {
2+
// Your implementation of this function must *not* call String.prototype.repeat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat).
3+
// The goal is to re-implement that function, not to use it.
24
return "hellohellohello";
35
}
46

0 commit comments

Comments
 (0)