SHARE
TWEET

Untitled

a guest Mar 19th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var object = [1, 2, 3, 4, 5];
  2.  
  3.  for (i = 0; i < object.length; i++) {
  4.                 if (object[i] == 3) {  
  5.                     $('div').append('typing');                
  6.                    sleep(2);
  7.  
  8.                 }
  9.                 console.log(object[i]);
  10.    }
  11.  
  12.  
  13.  
  14. function sleep(seconds) {
  15.         var waitUntil = new Date().getTime() + seconds * 1000;
  16.         while (new Date().getTime() < waitUntil) true;
  17.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top