Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function the_fetch3(){ setTimeout(the_fetch2,3000);}
- async function myDisplay() {
- let myPromise = new Promise(function(resolve) {
- setTimeout(the_fetch3() {resolve(alert('affichage pret'));}, 3000);
- });
- document.getElementById("demo").innerHTML = await myPromise;
- }
- myDisplay();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement