Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html lang="en">
- <body>
- <script>
- let answer=prompt("Hey mon ami ! tu aimes ça manger des patates?, Oui/Non ou o/n");
- if (answer.charAt(0) =="o" || answer.charAt(0) =="O" || answer.charAt(0) =="Y" || answer.charAt(0) =="y") {
- var j ="#";
- for(i=0; i <=7; i++) {
- console.log(j);
- j += "#";
- }
- }
- else if (answer.charAt(0) =="n" ||answer.charAt(0) =="N")
- {
- alert(":'-(");
- }
- else {
- alert("Je vous sens comme tiraillé");
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment