Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hasHeLanded = false;
- function takeOff() {
- setTimeout(function () {
- hasHeLanded = true;
- console.log("I just landed! Woooho!");
- }, 5000);
- }
- function callFriendAndTalkVeryExcitedlyAboutYourPrototype() {
- console.log("Hey friend, you will not believe what my mind stumbled upon...");
- }
- var keepCalling = setInterval(function callAirfield() {
- if (hasHeLanded) {
- callFriendAndTalkVeryExcitedlyAboutYourPrototype();
- clearInterval(keepCalling);
- }
- }, 500);
- takeOff();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement