File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,11 @@ n = 10
1616// Output: [10,11,12]
1717```
1818
19- ** Explanation:** <br >
20- counter() = 10 // The first time counter() is called, it returns n. <br >
21- counter() = 11 // Returns 1 more than the previous time. <br >
22- counter() = 12 // Returns 1 more than the previous time.
19+ ** Explanation:**
20+
21+ counter() = 10 // The first time counter() is called, it returns n.
22+ counter() = 11 // Returns 1 more than the previous time.
23+ counter() = 12 // Returns 1 more than the previous time.
2324
2425---
2526
3132// Output: [-2,-1,0,1,2]
3233```
3334
34- ** Explanation:** <br > counter() initially returns -2. Then increases after each sebsequent call.
35+ ** Explanation:**
36+
37+ counter() initially returns -2. Then increases after each sebsequent call.
3538
3639---
3740
4043- ` 0 <= calls.length <= 1000 `
4144- ` calls[i] === "call" `
4245
43- ---
46+ ---
Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ Input: millis = 100
1616// Output: 100
1717```
1818
19- ** Explanation:** <br >
20- It should return a promise that resolves after 100ms. <br >
19+ ** Explanation:**
20+
21+ It should return a promise that resolves after 100ms.
2122`let t = Date.now();
2223sleep(100).then(() => {
2324 console.log(Date.now() - t); // 100
@@ -32,11 +33,13 @@ Input: millis = 200
3233// Output: 200
3334```
3435
35- ** Explanation:** <br > It should return a promise that resolves after 200ms.
36+ ** Explanation:**
37+
38+ It should return a promise that resolves after 200ms.
3639
3740---
3841
3942### Constraints:
4043- ` 1 <= millis <= 1000 `
4144
42- ---
45+ ---
You can’t perform that action at this time.
0 commit comments