Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Js</title>
- </head>
- <body>
- <script>
- var i = 1
- var patate = "#";
- var Reponse= prompt("Hey mon ami ! Tu aimes ça les patates ?").toLowerCase();
- switch(Reponse) {
- case "oui":
- for (i=0; i<7; i++ )
- {
- console.log(patate);
- patate = patate + "#"
- }
- break;
- case "non":
- alert('Mince alors !!!');
- break;
- default:
- alert('Je vous sens comme tiraillé');
- break;
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment