Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <script>
  11. var optie = prompt(
  12. "You robbed a bank and arn into the cops. do you RUN, FIGHT or PAY them?"
  13. );
  14. switch (optie) {
  15. case "run":
  16. var run = prompt("Do you run fast? (yes/no)");
  17. if (run == "yes") {
  18. console.log("You outran the police, good for you!");
  19. } else {
  20. console.log("The guys in blue got you, never skip leg day bro!");
  21. }
  22. break;
  23.  
  24. case "fight":
  25. var fight = prompt("Are you a good fighter(yes/no)");
  26. if (fight == "yes") {
  27. console.log("You managed to escape, that was close!");
  28. } else {
  29. console.log("You lost the fight, sucks to be you 💀!");
  30. }
  31. break;
  32.  
  33. case "pay":
  34. var pay = prompt("Did you bring enough cash?");
  35. if (pay == "yes") {
  36. console.log("You escaped, but you're poor as fuck again #sadlife");
  37. } else {
  38. console.log("That bribe won't work. Are you stupid?");
  39. }
  40. break;
  41. }
  42. </script>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement