Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <script>
  2. var i = prompt("How much times do you want this messages to appear? (Choose a number above 25)")
  3. if(i <= 25 || typeof i === 'string') {confirm("BE PUNISHED IT MUST BE A NUMBER ABOVE 0"); var i = 1000}
  4. for(i; i > 0; i--)
  5. {
  6. confirm("This is the " + i + " message! There is going to be more " + (i-1) + " messages!" )
  7. }
  8. if(i === 0) {confirm("YOU DID IT!")}
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement