Advertisement
STANAANDREY

async ex

Aug 12th, 2021
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const afun = async () => {
  2.     for (let i = 0; i < 10000; i++) {
  3.         console.log(1);
  4.         //for (let i = 0; i < 1e10; i++);
  5.     }
  6. }
  7.  
  8. afun();
  9. for (let i = 0; i < 100; i++) {
  10.     document.body.innerHTML += 'asd <br>';
  11.     //for (let i = 0; i < 1e10; i++);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement