Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Présentation</title>
- </head>
- <body>
- <script>
- var reponse = prompt('Hey mon ami ! Tu aimes ça les patates petit coquinou ?');
- if ((reponse === "oui")||(reponse === "yes")||(reponse === "Oui")) {
- var ligne= "";
- for (var i = 1; i <= 7; i++) {
- ligne = ligne + '#';
- console.log(ligne);
- } }
- else if((reponse === "non")||(reponse=== "no")||(reponse=== "Non")||(reponse=== "NON"))
- {
- alert("Qu'est ce qu'il t'arrive mon petit Loulou?");
- }
- else {
- alert('Ah ! Je vous sens comme tiraillé');
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment