+ 1

How can i make the following function wait for some time before logging out a value ?

https://code.sololearn.com/WmbKfwFLlEK4/?ref=app

6th Jul 2021, 9:14 PM
Abhay
Abhay - avatar
2 Antworten
0
Phan Thanh Bình appreciate the help but that is not what i want . If you see the setTimeout function when used in Promise(provided by javascript) actually wait for some time( 1 sec here) unlike my.
7th Jul 2021, 8:57 PM
Abhay
Abhay - avatar
7th Jul 2021, 5:58 PM
Phan Thanh Bình
Phan Thanh Bình - avatar