We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ab18ba commit 3a088b5Copy full SHA for 3a088b5
solution/2600-2699/2621.Sleep/README_EN.md
@@ -67,9 +67,6 @@ async function sleep(millis: number): Promise<void> {
67
*/
68
```
69
70
-<!-- tabs:end -->
71
-
72
-<!-- tabs:start -->
73
#### JavaScript
74
75
```js
@@ -78,17 +75,17 @@ async function sleep(millis: number): Promise<void> {
78
* @return {Promise}
79
76
80
77
async function sleep(millis) {
81
- return new Promise ( r => setTimeout(r,millis))
+ return new Promise(r => setTimeout(r, millis));
82
}
83
84
-/**
+/**
85
* let t = Date.now()
86
* sleep(100).then(() => console.log(Date.now() - t)) // 100
87
+```
88
89
<!-- tabs:end -->
90
91
92
<!-- solution:end -->
93
94
<!-- problem:end -->
0 commit comments