Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <body>
- <script>
- let question = prompt("Hey mon ami ! Tu aimes ça les patates ?");
- answer = "";
- if (question === "oui" || question === "OUI" || question === "Oui") {
- for (let i = 1; i <= 7; i++) {
- console.log((answer = answer + "#"));
- }
- } else if (question === "non" || question === "NON" || question === "Non") {
- alert("Je n'oserais pas te juger...");
- } else {
- alert("Je vous sens comme tiraillé");
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement