Skip to content

Commit c28dc9c

Browse files
committed
1 > 11 > 2 > 2 bitti
1 parent 6d995df commit c28dc9c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

1-js/11-async/02-promise-basics/02-delay-promise/solution.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ function delay(ms) {
55

66
delay(3000).then(() => alert('runs after 3 seconds'));
77
```
8-
9-
Please note that in this task `resolve` is called without arguments. We don't return any value from `delay`, just ensure the delay.
8+
Dikkat ederseniz bu çağrıda `resolve` argüman olmadan çağrılmıştır. `delay`'den hiç değer dönmüyoruz, sadece geciktiğine eminiz.

1-js/11-async/02-promise-basics/02-delay-promise/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

2-
# Delay with a promise
2+
# Söz ile gecikme
33

4-
The built-in function `setTimeout` uses callbacks. Create a promise-based alternative.
4+
Gömülü olarak gelen `setTimeout` fonksiyonu callback kullanmaktadır. Bunun söz-temelli alternatifini yazınız.
55

6-
The function `delay(ms)` should return a promise. That promise should resolve after `ms` milliseconds, so that we can add `.then` to it, like this:
6+
`delay(ms)` fonksiyonu söz döndürmelidir. Bu söz `ms` saniye sonra çözülmelidir. Böylece `.then` ekleyebiliriz. Örneğin:
77

88
```js
99
function delay(ms) {
10-
// your code
10+
// Kodunuz
1111
}
1212

1313
delay(3000).then(() => alert('runs after 3 seconds'));

0 commit comments

Comments
 (0)