Guest User

Untitled

a guest
Jan 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. // Write your code below
  12. var favoriteMovie = "the shining";
  13. var moviePhrase;
  14.  
  15. switch (favoriteMovie) {
  16. case "jaws":
  17. moviePhrase = "You're gonna need a bigger boat.";
  18. break;
  19. case "the shining":
  20. moviePhrase = "All work and no play makes Jack a dull boy.";
  21. break;
  22. case "star wars":
  23. moviePhrase = "Do. Or do not. There is no try.";
  24. break;
  25. case "forrest gump":
  26. moviePhrase = "Life was like a box of chocolates.";
  27. break;
  28. case "back to the future":
  29. moviePhrase = "Where we're going, we don't need roads.";
  30. break;
  31. default:
  32. moviePhrase = "Great movie choice!";
  33. }
  34. </script>
  35.  
  36.  
  37.  
  38. <script id="jsbin-source-javascript" type="text/javascript">// Write your code below
  39. var favoriteMovie = "the shining";
  40. var moviePhrase;
  41.  
  42. switch (favoriteMovie) {
  43. case "jaws":
  44. moviePhrase = "You're gonna need a bigger boat.";
  45. break;
  46. case "the shining":
  47. moviePhrase = "All work and no play makes Jack a dull boy.";
  48. break;
  49. case "star wars":
  50. moviePhrase = "Do. Or do not. There is no try.";
  51. break;
  52. case "forrest gump":
  53. moviePhrase = "Life was like a box of chocolates.";
  54. break;
  55. case "back to the future":
  56. moviePhrase = "Where we're going, we don't need roads.";
  57. break;
  58. default:
  59. moviePhrase = "Great movie choice!";
  60. }</script></body>
  61. </html>
Add Comment
Please, Sign In to add comment