Guest User

Untitled

a guest
Jul 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. var changed = false;
  2.  
  3. setTimeout(function () {
  4. console.log("I'm hacking in setTimeout~~~");
  5. changed = true;
  6. })
  7.  
  8. while (true) {
  9. if (changed) {
  10. console.log("The system has been hacked by outer program. Exiting...");
  11. break;
  12. }
  13. }
  14.  
  15. setTimeout(function () {
  16. console.log(`The value of $changed: ${changed}`);
  17. })
Add Comment
Please, Sign In to add comment