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 = "Star wars"
- var moviePhrase;
- switch(favoriteMovie){
- case "jaws":
- moviePhrase = "You're gonna need a bigger boat.";
- break;
- case "shining":
- moviePhrase = "All work and no play games Jack a dull boy.";
- break;
- case "star wars":
- moviePhrase ="Do. Or do not. There is no try.";
- break;
- case "forrestg 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:
- moviePharse = "Great Movie Choice";
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">// Write your code below
- var favoriteMovie = "Star wars"
- var moviePhrase;
- switch(favoriteMovie){
- case "jaws":
- moviePhrase = "You're gonna need a bigger boat.";
- break;
- case "shining":
- moviePhrase = "All work and no play games Jack a dull boy.";
- break;
- case "star wars":
- moviePhrase ="Do. Or do not. There is no try.";
- break;
- case "forrestg 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:
- moviePharse = "Great Movie Choice";
- }
- </script></body>
- </html>
Add Comment
Please, Sign In to add comment