File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
1-js/11-async/02-promise-basics/02-delay-promise Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ function delay(ms) {
55
66delay (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.
Original file line number Diff line number Diff line change 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
99function delay (ms ) {
10- // your code
10+ // Kodunuz
1111}
1212
1313delay (3000 ).then (() => alert (' runs after 3 seconds' ));
You can’t perform that action at this time.
0 commit comments