Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- <script id="jsbin-javascript">
- // Write your code below
- var favoriteMovie = "the shining";
- var moviePhrase;
- switch (favoriteMovie) {
- case "jaws":
- moviePhrase = "You're gonna need a bigger boat.";
- break;
- case "the shining":
- moviePhrase = "All work and no play makes Jack a dull boy.";
- break;
- case "star wars":
- moviePhrase = "Do. Or do not. There is no try.";
- break;
- case "forrest gump":
- moviePhrase = "Life was like a box of chocolates.";
- break;
- case "back to the future":
- moviePhrase = "Where we're going, we don't need roads.";
- break;
- default:
- moviePhrase = "Great movie choice!";
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">// Write your code below
- var favoriteMovie = "the shining";
- var moviePhrase;
- switch (favoriteMovie) {
- case "jaws":
- moviePhrase = "You're gonna need a bigger boat.";
- break;
- case "the shining":
- moviePhrase = "All work and no play makes Jack a dull boy.";
- break;
- case "star wars":
- moviePhrase = "Do. Or do not. There is no try.";
- break;
- case "forrest gump":
- moviePhrase = "Life was like a box of chocolates.";
- break;
- case "back to the future":
- moviePhrase = "Where we're going, we don't need roads.";
- break;
- default:
- moviePhrase = "Great movie choice!";
- }</script></body>
- </html>
Add Comment
Please, Sign In to add comment